projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
d652fbd
)
Use the same _is_valid_class_name check in is_class_loaded
Shawn M Moore [Tue, 25 Nov 2008 07:36:15 +0000 (07:36 +0000)]
lib/Class/MOP.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Class/MOP.pm
b/lib/Class/MOP.pm
index
43e5192
..
a72de08
100644
(file)
--- a/
lib/Class/MOP.pm
+++ b/
lib/Class/MOP.pm
@@
-173,7
+173,7
@@
sub _is_valid_class_name {
sub is_class_loaded {
my $class = shift;
- return 0 if ref($class) || !defined($class) || !length($class);
+ return 0 unless _is_valid_class_name($class);
# walk the symbol table tree to avoid autovififying
# \*{${main::}{"Foo::"}} == \*main::Foo::