good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Seeking Getopt recommendations - anyone used Getopt::Easy?by gaal (Parson) |
on Jan 09, 2007 at 17:28 UTC ( [id://593759]=note: print w/replies, xml ) | Need Help?? |
What's the purpose of eval { ... }; print ... if $@?
It's almost always better to let the program die if it received invalid input. You'll get the same error message (without the "ERROR: " prefix) on standard error.
In Section
Seekers of Perl Wisdom
|
|