develooper Front page | perl.perl5.porters | Postings from April 2001

Re: [PATCH] UNIVERSAL shouldn't require Exporter

Thread Previous | Thread Next
Mike Guy
April 26, 2001 05:58
Re: [PATCH] UNIVERSAL shouldn't require Exporter
Message ID:
Simon Cozens <> wrote
> I think that's not gaining anything, but it's losing a dependency on
> Exporter, which is *way* overweight for UNIVERSAL. Sounds like a Good
> Thing to me.

True but irrelevant.   If you're worried about the cost of "use UNIVERSAL;"
the correct action is to cross it out, as recommends:

     These subroutines should not be imported via
     "use UNIVERSAL qw(...)".  If you want simple local access to
     them you can do

       *isa = \&UNIVERSAL::isa;

     to import isa into your package.

Mike Guy

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About