develooper Front page | perl.beginners | Postings from May 2007

Re: Module question

Thread Previous | Thread Next
From:
David Moreno Garza
Date:
May 24, 2007 09:49
Subject:
Re: Module question
Message ID:
20070524164412.GC1896@cerdita.puerquita.cochinita.chanchita.damog.net
Jeff Pang wrote:
> @EXPORT was used for exporting symbol (methods or variables) by default.
> When you say,
> use base 'Exporter';
> our @EXPORT = qw/&mysub/;
> ..
> then mysub() would be exported into caller's name space defaultly.

Would that also work using:

our @EXPORT = qw/mysub/;   ?

Or is the Perl 4 way to call subroutines also needed?

-- 
David Moreno Garza <damog@ciencias.unam.mx> | http://www.damog.net/
 <URL:http://pub.tsn.dk/how-to-quote.php>


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