in reply to Re: return undef
in thread return undef
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 ... ".open $fh, ">$filename" or die "could not open '$filename' for writing: $! "
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: return undef
by gaal (Parson) on May 23, 2005 at 05:02 UTC |
In Section
Seekers of Perl Wisdom