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


Die-Alive documentation  | view source Contained in the Die-Alive distribution.

Index


NAME

Top

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

DESCRIPTION

Top

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

Top

  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

Top

No::Die

AUTHOR

Top

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

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

COPYRIGHT

Top


Die-Alive documentation  | view source Contained in the Die-Alive distribution.