![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: exit or die in error handling?by myuserid7 (Scribe) |
on Apr 14, 2005 at 10:15 UTC ( #447686=note: print w/replies, xml ) | Need Help?? |
Use "exit" if it's not an error.
Use "die" if it is.
You don't want to worry about memory management for simple things like this - think programmer efficiency!
In Section
Seekers of Perl Wisdom
|
|