From: Dave Rolsky Date: Sat, 17 Nov 2007 23:32:06 +0000 (+0000) Subject: Replaced a regex with a string comparison, since the regex could only X-Git-Tag: 0_46~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9c6877f4bf6c32308c03aa9e66625a85a75788b5;p=gitmo%2FClass-MOP.git Replaced a regex with a string comparison, since the regex could only match one string. --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index ee65f1d..403e5e8 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -78,7 +78,7 @@ sub construct_class_instance { # now create the metaclass my $meta; - if ($class =~ /^Class::MOP::Class$/) { + if ($class eq 'Class::MOP::Class') { no strict 'refs'; $meta = bless { # inherited from Class::MOP::Package