summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2013-02-07 14:01:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-02-07 18:37:32 (GMT)
commit8a2cc51b6ff335d8e5abf2d8f7be33412e4b9158 (patch)
treeb1df207619439a83a364795c90e730c54c1b8009 /perl
parent1bc760aeb784701a702c0a306d464834e96b1f3d (diff)
downloadgit-8a2cc51b6ff335d8e5abf2d8f7be33412e4b9158.zip
git-8a2cc51b6ff335d8e5abf2d8f7be33412e4b9158.tar.gz
git-8a2cc51b6ff335d8e5abf2d8f7be33412e4b9158.tar.bz2
Git.pm: fix example in command_close_bidi_pipe documentation
File handle goes as the first argument when calling print on it. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'perl')
-rw-r--r--perl/Git.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/Git.pm b/perl/Git.pm
index bbb753a..11f310a 100644
--- a/perl/Git.pm
+++ b/perl/Git.pm
@@ -418,7 +418,7 @@ and it is the fourth value returned by C<command_bidi_pipe()>. The call idiom
is:
my ($pid, $in, $out, $ctx) = $r->command_bidi_pipe('cat-file --batch-check');
- print "000000000\n" $out;
+ print $out "000000000\n";
while (<$in>) { ... }
$r->command_close_bidi_pipe($pid, $in, $out, $ctx);