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

Re: [PATCH] making Exporter simpler to use

Thread Previous | Thread Next
From:
Graham Barr
Date:
February 12, 2003 14:40
Subject:
Re: [PATCH] making Exporter simpler to use
Message ID:
20030212224016.Y72765@pobox.com
On Wed, Feb 12, 2003 at 09:54:29PM +0000, Fergal Daly wrote:
> 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,

Well with recent perls it can be done in two without the code bloat

  use base qw(Exporter);
  our @EXPORT = qw(symbols);

Graham.

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