http://www.perlmonks.org?node_id=189684


in reply to Re: Building an anonymous subroutine
in thread Building an anonymous subroutine

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.
  • Comment on Re: Re: Building an anonymous subroutine