Skip to content

Instantly share code, notes, and snippets.

@tene
Created August 24, 2010 15:37
Show Gist options
  • Select an option

  • Save tene/547751 to your computer and use it in GitHub Desktop.

Select an option

Save tene/547751 to your computer and use it in GitHub Desktop.
use strict;
sub handler {
print "lol i died\n";
}
BEGIN {
$SIG{__DIE__} = &handler;
}
$foo = "lol";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment