Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Check if "System" was succesful

by BazB (Priest)
on Apr 09, 2004 at 16:20 UTC ( #343938=note: print w/replies, xml ) Need Help??


in reply to Re: Check if "System" was succesful
in thread Check if "System" was succesful

The usual (and slightly more compact) way to check a system call is:

system( $cmd ) == 0 or die "System call failed: $!";

The " == 0" deals with the fact that system returns 0/false on success, not true like most perl functions.


If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://343938]
help
Chatterbox?
[Lady_Aleena]: That's not fair
[Lady_Aleena]: I was thinking about moving WorldBuilding to Random, since it is all randomness in that group anyway, but Random::World is the same length as WorldBuilding. I wouldn't be doing myself any favors.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-05-25 03:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?