Perl: the Markov chain saw | |
PerlMonks |
Re^2: return undefby Thilosophy (Curate) |
on May 23, 2005 at 04:38 UTC ( [id://459442]=note: print w/replies, xml ) | Need Help?? |
Another useful feature of raising exceptions is that you can pass along the actual error message, which makes debugging much easier.
Also, if you do not write code to catch the exception, your program will terminate with a more meaningful message than "Use of uninitialized value at ... ".
In Section
Seekers of Perl Wisdom
|
|