in reply to Drawback of eval {---}if ($@){---}, when using many times?

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.

Dum Spiro Spero
  • Comment on Re: Drawback of eval {---}if ($@){---}, when using many times?