The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Die::Alive - Make die() to not exit the Perl interpreter, but keep the die() behavior inside eval.

DESCRIPTION

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.

USAGE

  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" ;

SEE ALSO

No::Die

AUTHOR

Graciliano M. P. <gm@virtuasites.com.br>

I will appreciate any type of feedback (include your opinions and/or suggestions). ;-P

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.