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

Re: [PATCH] making Exporter simpler to use

Thread Previous | Thread Next
John Peacock
February 11, 2003 12:12
Re: [PATCH] making Exporter simpler to use
Message ID:
Fergal Daly wrote:
> The old interface is still there, setting all the @EXPORT stuff by hand will 
> still work, so it's not so much an interface change as an alternate 
> interface. I suppose any module that wants to be widely used with older 
> versions of perl will have to continue doing it by hand but I don't think 
> that's a reason not to include it.

I think Brent is just more concerned about what happens when a module uses the 
new interface, but the user doesn't have that version of Exporter available. 
Having an ugly effect on earlier Perl's is not good, no matter how nice the 
improvements are.

> Alternatively, I could just move the whole thing into EasyExporter or 
> Exporter::Easy as it is totally independent of the guts of Exporter. That 
> makes it easy for people to install it on an old version too.

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.


John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

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