Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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;
    }