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

Re: require UNIVERSAL;

Thread Previous
October 6, 2003 13:40
Re: require UNIVERSAL;
Message ID:
On Mon, Oct 06, 2003 at 09:31:46PM +0100, Graham Barr wrote:
> > Evil is Good. :)
> >
> > Anyhow, it doesn't have the import side effect AFAIK.
> I don't see how not, it does
> package UNIVERSAL;
> use Exporter::Lite qw(import);

Exporter::Lite is not as persnickity as Exporter.  It will exit silently if
the module has no @EXPORT*... usually.  I think this is a happy accident, but
I'm not above claiming it as a brilliant design decision. :)

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