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

Re: Handling weird return values with or die

by azatoth (Curate)
on Jul 05, 2001 at 16:29 UTC ( #94072=note: print w/ replies, xml ) Need Help??


in reply to Handling weird return values with or die

Check this out : Re: Re (tilly) 3: Seeking Feed back. It'll solve your problem :)

Basically, you need to check the actual return value of the system call, which is stored in $?.

Azatoth a.k.a Captain Whiplash

Make Your Die Messages Full of Wisdom!
Get YOUR PerlMonks Stagename here!
Want to speak like a Londoner?


Comment on Re: Handling weird return values with or die
Re: Re: Handling weird return values with or die
by mvaline (Friar) on Jul 05, 2001 at 16:50 UTC
    Thanks; your solution worked great! I hadn't been familiar with $? until now.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-07-07 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls