projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1a5cc82
)
Replaced a regex with a string comparison, since the regex could only
Dave Rolsky [Sat, 17 Nov 2007 23:32:06 +0000 (23:32 +0000)]
match one string.
lib/Class/MOP/Class.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Class/MOP/Class.pm
b/lib/Class/MOP/Class.pm
index
ee65f1d
..
403e5e8
100644
(file)
--- 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