in reply to Reading and capturing the import list
The module's import() sub is called with the list specified when the module is used. So, something like this will do:
package Foo; sub import { my $class = shift; # It's called as a class method. @Foo::urls = @_; } 1;
Update: See PodMaster's comments below. He is entirely correct. I've edited the code above to reflect that. (And, thanks PodMaster, for catching my thinko.)
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reading and capturing the import list
by PodMaster (Abbot) on Jul 03, 2003 at 05:54 UTC | |
|
Re: Re: Reading and capturing the import list
by jacques (Priest) on Jul 03, 2003 at 04:27 UTC | |
by sauoq (Abbot) on Jul 03, 2003 at 04:35 UTC |