>>>>> "BF" == Brian Fraser <frase...@gmail.com> writes:
BF> On Sat, Jun 11, 2011 at 5:15 PM, Mike McClain <mike.j...@cox.net> wrote: >> >> # set up an alias for the fastest prime generator >> *primes = \&sieve_eratosthenese_lucky; >> >> BF> Just use that, but wrap it in a BEGIN block. that isn't going to help. we don't see the actual code doing the export. here is a working example from File::Slurp: @EXPORT_OK = ( @edit_export, qw( slurp prepend_file ), ) ; *slurp = \&read_file ; you need to export the aliased name as well as the original one. either can be in EXPORT or in EXPORT_OK. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/