Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Capturing both STDOUT, STDERR and exit status

by polettix (Vicar)
on May 06, 2005 at 22:34 UTC ( [id://454837]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub executeCommand_wrong {
      my $command = join ' ', @_;
    ...
    __END__
    [ciao] -> [0]
    [ciao] -> [1]
    
  2. or download this
    sub executeCommand {
      my $command = join ' ', @_;
      reverse ($_ = qx{$command 2>&1}, $? >> 8);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://454837]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-24 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found