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


in reply to try-catch with eval-die

May I suggest you use Exception::Class instead of just strings?