|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Re: Building an anonymous subroutineby Anonymous Monk |
| on Aug 12, 2002 at 20:37 UTC ( [id://189684]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Doing an eval without checking $@ and throwing a useful error message is a really bad idea. I would also suggest reading the section on Plain Old Comments in perlsyn and using that to cause any errors thrown from within the subroutine to have more useful and meaningful names than just eval 38.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||