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

Re: [PATCH] UNIVERSAL shouldn't require Exporter

Thread Previous | Thread Next
From:
Mike Guy
Date:
April 26, 2001 05:58
Subject:
Re: [PATCH] UNIVERSAL shouldn't require Exporter
Message ID:
E14slLu-0002tJ-00@libra.cus.cam.ac.uk
Simon Cozens <simon@netthink.co.uk> 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 UNIVERSAL.pm 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About