X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDevel%2FGlobalDestruction.pm;h=cbfd5aa120c8402c065b3f5b5da020a07500b97e;hb=f832e2407333be0791e31fd01b37cc014dc0e4ee;hp=8cf559c61febd481f5dfa816bce4f3f4e64e14ea;hpb=d4d91c2b00967822664712a6bf55e66537ea7707;p=p5sagit%2FDevel-GlobalDestruction.git diff --git a/lib/Devel/GlobalDestruction.pm b/lib/Devel/GlobalDestruction.pm index 8cf559c..cbfd5aa 100644 --- a/lib/Devel/GlobalDestruction.pm +++ b/lib/Devel/GlobalDestruction.pm @@ -10,8 +10,8 @@ use XSLoader; our $VERSION = '0.04'; use Sub::Exporter -setup => { - exports => [ qw(in_global_destruction) ], - groups => { default => [ -all ] }, + exports => [ qw(in_global_destruction) ], + groups => { default => [ -all ] }, }; if (defined ${^GLOBAL_PHASE}) { @@ -34,16 +34,16 @@ destruction. =head1 SYNOPSIS - package Foo; - use Devel::GlobalDestruction; + package Foo; + use Devel::GlobalDestruction; - use namespace::clean; # to avoid having an "in_global_destruction" method + use namespace::clean; # to avoid having an "in_global_destruction" method - sub DESTROY { - return if in_global_destruction; + sub DESTROY { + return if in_global_destruction; - do_something_a_little_tricky(); - } + do_something_a_little_tricky(); + } =head1 DESCRIPTION @@ -87,9 +87,9 @@ Jesse Luehrs Edoy@tozt.netE =head1 COPYRIGHT - Copyright (c) 2008 Yuval Kogman. All rights reserved - This program is free software; you can redistribute - it and/or modify it under the same terms as Perl itself. + Copyright (c) 2008 Yuval Kogman. All rights reserved + This program is free software; you can redistribute + it and/or modify it under the same terms as Perl itself. =cut