OK, it's probably not called an alias but I don't know the proper term.
I've been exploring prime number generation algorithms and after putting
the various routines in primes.pm I thought it would be neat to name the
fastest simply primes as so:

#   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

I can put the same statement in a file that imports 
sieve_eratosthenese_lucky but that's not what I really wanted.

Is there a way to setup such an alias in the *.pm that will
be correctly exported or am I faced with having to rename
the fastest routine?

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