X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod%2FDestructor.pm;h=fa0d0253c479b587ac2b61e840a0a61cbcbc951c;hb=7ca5c5fb6e084d9c57bc022b336458afc74c6847;hp=904b4134287cf7b26318fa381f9045d87221cd18;hpb=43e6a50b260b096a34b0c46da87296bd220c4184;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Method/Destructor.pm b/lib/Mouse/Meta/Method/Destructor.pm index 904b413..fa0d025 100644 --- a/lib/Mouse/Meta/Method/Destructor.pm +++ b/lib/Mouse/Meta/Method/Destructor.pm @@ -8,10 +8,10 @@ sub generate_destructor_method_inline { my $demolishall = do { if ($meta->name->can('DEMOLISH')) { my @code = (); - no strict 'refs'; - for my $klass ($meta->linearized_isa) { - if (*{$klass . '::DEMOLISH'}{CODE}) { - push @code, "${klass}::DEMOLISH(\$self);"; + for my $class ($meta->linearized_isa) { + no strict 'refs'; + if (*{$class . '::DEMOLISH'}{CODE}) { + push @code, "${class}::DEMOLISH(\$self);"; } } join "\n", @code;