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.
In reply to Re: •Re: DWIM: autoloading classes
by Ovid
in thread DWIM: autoloading classes
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |