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

Re: Module question

Thread Previous | Thread Next
David Moreno Garza
May 24, 2007 09:49
Re: Module question
Message ID:
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 <> |

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