projects
/
urisagit/Stem.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
04f8802
)
FINALLY fixed class-loading symbol-table lookup bug\!
Steve Scaffidi [Sat, 27 Jun 2009 04:32:30 +0000 (
00:32
-0400)]
lib/Stem/Conf.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Stem/Conf.pm
b/lib/Stem/Conf.pm
index
9def747
..
cff47ba
100644
(file)
--- a/
lib/Stem/Conf.pm
+++ b/
lib/Stem/Conf.pm
@@
-230,7
+230,11
@@
sub configure {
no strict 'refs' ;
- unless ( %{"${class}::"} ) {
+ my %loaded_packages = map { $_ => 1 } keys %{*{"main\::"}};
+
+ unless ( $loaded_packages{"$class\::"} ) {
+
+#print "attempting to load $class\n";
my $module = $class ;
$module =~ s{::}{/}g ;