]> git.donarmstrong.com Git - class_modular.git/.git/blobdiff - lib/Class/Modular.pm
* Check correctly for undefined subroutines
[class_modular.git/.git] / lib / Class / Modular.pm
index cbb7c28571d0ce898ef6cc7c3653df1fa6cef646..d833b73894d492eaa0b61b4e893d37c9dccd4f1b 100644 (file)
@@ -70,7 +70,7 @@ use Carp;
 use Storable qw(dclone); # Used for deep copying objects
 
 BEGIN{
-     $VERSION = q$0.01SVN$;
+     $VERSION = q$0.03SVN$;
      ($REVISION) = q$LastChangedRevision$ =~ /\$LastChangedRevision:\s+([^\s+])/;
      $DEBUG = 0 unless defined $DEBUG;
 }
@@ -411,7 +411,7 @@ sub DESTROY{
               &{"${subclass}::_destroy"}($self);
          };
          if ($@) {
-              if ($@ !~ /^Undefined function ${subclass}::_destroy at [^\n]*$/){
+              if ($@ !~ /^Undefined subroutine \&${subclass}::_destroy called at [^\n]*$/){
                    die "Failed while trying to destroy: $@";
               }
               else {