fixed demolish calls
Stevan Little [Thu, 31 Jan 2008 17:46:45 +0000 (17:46 +0000)]
lib/Moose/Meta/Method/Destructor.pm

index 73f1021..09db416 100644 (file)
@@ -63,7 +63,7 @@ sub intialize_body {
         push @DEMOLISH_calls => '$_[0]->' . $method->{class} . '::DEMOLISH()';    
     }
     
-    $source .= join "\n" => @DEMOLISH_calls;
+    $source .= join ";\n" => @DEMOLISH_calls;
 
     $source .= ";\n" . '}'; 
     warn $source if $self->options->{debug};