in reply to Reading and capturing the import list

Would it not make more sense to leave the import mechanism alone and just do it in the constructor, lile everyone else?
package Some::Module; my @urls; sub new { my $class = shift; my @urls = @_ if @_; bless {}, $class; } ##### main file : use Some::Module; $s = Some::Module->new("http://www.perlmonks.org");


--Bob Niederman, http://bob-n.com

Replies are listed 'Best First'.
Re: Re: Reading and capturing the import list
by chromatic (Archbishop) on Jul 03, 2003 at 17:28 UTC

    If he's writing an OO module, perhaps. Not all modules are OO. Think constant, for example. :)