Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: exit or die in error handling?

by Taulmarill (Deacon)
on Apr 14, 2005 at 10:17 UTC ( #447688=note: print w/replies, xml ) Need Help??


in reply to exit or die in error handling?

depends on what you want to do. die gives an error message to STDOUT and is used if there is an error. exit on the other hand just ends the script.
see perldoc -f die and perldoc -f exit

Replies are listed 'Best First'.
Re^2: exit or die in error handling?
by monkey_boy (Priest) on Apr 14, 2005 at 10:21 UTC
    "die gives an error message to STDOUT"

    No it doesnt! STDERR


    This is not a Signature...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2023-02-04 02:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (30 votes). Check out past polls.

    Notices?