From 8a2cc51b6ff335d8e5abf2d8f7be33412e4b9158 Mon Sep 17 00:00:00 2001 From: Michal Nazarewicz Date: Thu, 7 Feb 2013 15:01:18 +0100 Subject: 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 --- perl/Git.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl') 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 @@ and it is the fourth value returned by C. 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); -- cgit v1.2.3