> Hi all, > > Still thinking about this one. I have: > > my $backup = system($rdiff, @args); > > # Send e-mail with a few details for success and failures > # Success > if ($backup == 0) { > blah > } > > > I want to be able to stick the ouput of the $rdiff command into a strong, > as well as get an exit code for it? > > Is this a backticks one? > > Gavin. >
Generally if you want the output you want backticks. The exit code is still available from C<$?>. And can be extracted the same as described in, perldoc perlvar perldoc -f system And the backticks is described specifically in, perldoc perlop http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>