Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: different between die and exit

by irah (Pilgrim)
on Feb 23, 2009 at 04:38 UTC ( [id://745701] : note . print w/replies, xml ) Need Help??


in reply to different between die and exit

If you want to trap whatever error happened use die function, to capture the error message. The exit does not.