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

Re: [PATCH] making Exporter simpler to use

Thread Previous | Thread Next
Fergal Daly
February 12, 2003 13:52
Re: [PATCH] making Exporter simpler to use
Message ID:
On Tuesday 11 February 2003 22:45, Nicholas Clark wrote:
> On Tue, Feb 11, 2003 at 03:07:22PM -0500, John Peacock wrote:
> > I suggest you follow this route and create Exporter::Easy as you
> > mentioned; then, if the pumpking deems this a worthy addition to the
> > core, you can make sure that 'use Exporter::Easy' is effectively a no-op
> > for Perl > 5.9.0.
> We seem to have Exporter::Lite and Exporter::Simple on CPAN already.
> I fear that wheels are being re-invented here.

Fear not...

Exporter::Lite is a reimplementation of Exporter without tags.

Exporter::SImple takes a totally different approach and allows you to mark all 
your exportables with attributes which is a nice idea but totally different 
to the old way and using attributes means several subroutine calls for every 
symbol you mark.

Exporter::Easy is quite similar to how things work already it just makes it 
quicker and easier by removing the need for declaring variables and fiddling 
with @ISA. It also makes creating and using tags much easier.

That said I actually think the nicest thing about it is that exporting just a 
couple of symbols can be done in 1 line instead of 4,


Do you need someone with lots of Unix sysadmin and/or lots of OO software 
development experience? Go on, giz a job.
My CV -

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