From: Michal Nazarewicz Date: Thu, 7 Feb 2013 14:01:18 +0000 (+0100) Subject: Git.pm: fix example in command_close_bidi_pipe documentation X-Git-Tag: v1.8.3-rc0~194^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8a2cc51b6ff335d8e5abf2d8f7be33412e4b9158?hp=1bc760aeb784701a702c0a306d464834e96b1f3d 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 Signed-off-by: Junio C Hamano --- diff --git a/perl/Git.pm b/perl/Git.pm index bbb753a0ac..11f310af1d 100644 --- a/perl/Git.pm +++ b/perl/Git.pm @@ -418,7 +418,7 @@ sub command_bidi_pipe { 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);