go ahead... be a heretic | |
PerlMonks |
Re: exit or die in error handling?by Taulmarill (Deacon) |
on Apr 14, 2005 at 10:17 UTC ( [id://447688]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|