Just another Perl shrine | |
PerlMonks |
Re: Drawback of eval {---}if ($@){---}, when using many times?by GotToBTru (Prior) |
on Oct 29, 2015 at 12:25 UTC ( [id://1146370]=note: print w/replies, xml ) | Need Help?? |
It looks clunky, I am not sure if there is anything wrong with it. The danger with eval is if you have variable interpolations that may allow uncontrolled code to be run. If the blocks in the eval look similar then you might want to replace them with a subroutine call.
In Section
Seekers of Perl Wisdom
|
|