On Sat, Jun 11, 2011 at 01:15:45PM -0700, Mike McClain wrote:
<snip> 
> #   set up an alias for the fastest prime generator
> *primes = \&sieve_eratosthenese_lucky;
> 
> and export primes but it doesn't work:
> Undefined subroutine &main::primes called at ./primes.pl line 176
<snip> 

Brian, Uri thanks for your help.
I'd have responded earlier but the mails dropped an edition or two of 
the Beginners Digest and I had to go to the archives to see your 
responses.

I got caught by the fact that a module's default exports aren't
exported if items from @EXPORT_OK are requested.

Mike
-- 
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to