Skip to content

Instantly share code, notes, and snippets.



Created Dec 19, 2010
What would you like to do?
use strict;
use Scope::Guard;
$SIG{INT} = sub { exit 0 };
my $sg = Scope::Guard->new(sub { warn "hi"; sleep 10 });
print "Please send SIGINT\n";
exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.