Skip to content

Instantly share code, notes, and snippets.

@semifor
Created December 5, 2012 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save semifor/4212650 to your computer and use it in GitHub Desktop.
Save semifor/4212650 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use 5.12.1;
use warnings;
#use POSIX qw/_exit/;
package Foo {
use Moose;
sub DEMOLISH {
my ( $self, $in_global_destruction ) = @_;
say $in_global_destruction ? "*Poof*" : "Gasp!";
}
}
my $foo = Foo->new;
exit 0;
#_exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment