Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Best method to capture return code from system calls?

by dave_the_m (Parson)
on Aug 24, 2005 at 14:52 UTC ( #486216=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    system(...);
    if ($? == -1) {
    ...
    else {
        printf "child exited with value %d\n", $? >> 8;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2014-07-22 17:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (122 votes), past polls