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
Comment on
Re: exit or die in error handling?
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...
[reply]
[d/l]
In Section
Seekers of Perl Wisdom