Front page | perl.perl5.porters |
Postings from October 2003
Re: require UNIVERSAL;
Thread Previous
From:
schwern
Date:
October 6, 2003 13:40
Subject:
Re: require UNIVERSAL;
Message ID:
20031006133949.L20960@ttul.org
On Mon, Oct 06, 2003 at 09:31:46PM +0100, Graham Barr wrote:
> > Evil is Good. :)
> >
> > Anyhow, it doesn't have the UNIVERSAL.pm 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