Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 perusing the Monastery: (6)
As of 2024-04-24 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found