$SIG{__DIE__} problems
$SIG{__DIE__} is global
Your anonymous subroutine will be called by any ‘die’ statement
Solutions
Write your own exception method
Error.pm (try, throw, catch)
Previous slide
Next slide
Back to first slide
View graphic version