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

Re: [PATCH] making Exporter simpler to use

Thread Previous | Thread Next
From:
John Peacock
Date:
February 11, 2003 12:12
Subject:
Re: [PATCH] making Exporter simpler to use
Message ID:
3E4957FA.7040605@rowman.com
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

-- 
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


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