[p4perl] help for output of p4 revert -a file
Lars Thegler
lth at cybercity.dk
Thu Apr 14 00:18:50 PDT 2005
vik y wrote:
> But I only get partial output with the 'backtick' operator. I only
> get the output of file reverted successfully information. But could
> not get the error information. For example, if a file not found in
> p4, an output will be "... files not opened on this client". But
> $output could not get this line.
Perl backticks only capture stdout. To capture stderr as well, you would
need to say:
my $output = `p4 revert -a //depot/... 2>&1`;
/Lars
More information about the p4perl
mailing list