What are the best practices for error handling in Perl?
Posted
by Mike
on Stack Overflow
See other posts from Stack Overflow
or by Mike
Published on 2010-05-19T20:49:43Z
Indexed on
2010/05/19
21:00 UTC
Read the original article
Hit count: 162
I'm learning Perl, and in a lot of the examples I see errors are handled like this
open FILE, "file.txt" or die $!;
Is die
in the middle of a script really the best way to deal with an error?
© Stack Overflow or respective owner