develooper Front page | perl.perl5.porters | Postings from June 2003

Re: selective base.pm import

Thread Previous
From:
Jim Cromie
Date:
June 1, 2003 19:11
Subject:
Re: selective base.pm import
Message ID:
3EDACE14.4080201@divsol.com
yesterday, Jim Cromie blurted out:

>
> in msg:   
> http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2003-04/msg00294.html 
>
>
> Graham left open the possibility that selective import was not verboten.
> The following example and patch shows it just might be useful.


since its too late to s/send/save-and-review/;
I apologize for the over-statement.

s/just might be useful/ coexists with documented behavior/;

ie, in           use base qw(Foo Bar);

the import list is always scalars, usually barewords,
so finding refs in that list is at very least unexpected.

More to the point, its undefined, and could thus be considered fair-game 
for
some use.  Whether this use is good enough to grab such an idiom is
another question entirely.


thanks,
jimc


Thread Previous


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