Die::Alive - Make die() to not exit the Perl interpreter, but keep the die() behavior inside eval.
This module when loaded will make the function die() to not exit the Perl interpreter, but it will keep the die() behavior inside eval, making it to go out of an eval block.
use Die::Alive ; die("This die() won't exit!") ; print "And here we continue the app...\n" ; eval { die("Calling die() inside eval!"); print "And this print won't be executed.\n" ; } ; print "ERROR: $@\n" ;
No::Die
Graciliano M. P. <gm@virtuasites.com.br>
I will appreciate any type of feedback (include your opinions and/or suggestions). ;-P
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Die::Alive, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Die::Alive
CPAN shell
perl -MCPAN -e shell install Die::Alive
For more information on module installation, please visit the detailed CPAN module installation guide.