in reply to •Re: DWIM: autoloading classes
in thread DWIM: autoloading classes
Actually, I didn't know about that module, but what I was looking at is still different. Even the Class::Autouse is considerably different:
use Class::Autouse qw{CGI Data::Manip This::That};Mine finds all classes below a top level namespace. For example, if you have Foo::Bar, Foo::Bar::One::More, Foo::Bar::Two::Bad and Foo::Bar::Three::SaCharm, you could do make all of them "autoused" with this:
use Class::WhenNeeded 'Foo::Bar'; my $bad_luck = Foo::Bar::Two::Bad->new; # or possibly use Class::WhenNeeded 'Foo::Bar' => 'no_top_level'; my $good_luck = Three::SaCharm->new;
Perhaps my response to Abigail-II will clear it up. (Or perhaps it won't :)
Cheers,
Ovid
New address of my CGI Course.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DWIM: autoloading classes
by perrin (Chancellor) on Sep 17, 2003 at 04:01 UTC | |
by Ovid (Cardinal) on Sep 17, 2003 at 15:53 UTC |