in reply to Re^4: Catching a 'division by zero' error with Exception::Class
in thread Catching a 'division by zero' error with Exception::Class
toref $e ? $e->rethrow : die $e;
It says that caught without args simply returns $@ (which if successful will be undef), so that will keep it from throwing the empty die you are seeingref $e ? $e->rethrow : die $e if $e;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Catching a 'division by zero' error with Exception::Class
by baurel (Sexton) on Sep 15, 2008 at 18:09 UTC |