Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Obtaining a return code

by infoninja (Friar)
on May 18, 2000 at 20:34 UTC ( #13059=note: print w/replies, xml ) Need Help??


in reply to Obtaining a return code

At least on a Unix box, system() will return the exit status of the system call:
$x = system("echo y"); $x = $x/255; #set $x to actual exit value $y = system("blahblah"); $y = $y/255; #set $y to actual exit value
results in $x set to 0 and $y set to 256 (as long as there's no executable called "blahblah" in $PATH).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2019-12-11 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?