Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by dave_the_m (Monsignor)
on Aug 24, 2005 at 14:52 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://486216]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2024-04-15 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found