smackdab has asked for the wisdom of the Perl Monks concerning the following question:
package main; myfunc(1,2,3); # I want to redirect to foo::myfunc() sub AUTOLOAD { if $caller eq "foo" foo::myfunc(@_); } # Any way to get rid of the main::autoload and somehow # handle it in the foo package ??? Or is there a way # to override AUTOLOAD in my package using BEGIN or ???
uc(autoload) in title - dvergin 2002-05-11
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: autoload and packages
by svad (Pilgrim) on May 11, 2002 at 09:26 UTC | |
by smackdab (Pilgrim) on May 11, 2002 at 20:15 UTC | |
by svad (Pilgrim) on May 12, 2002 at 00:12 UTC | |
by smackdab (Pilgrim) on May 12, 2002 at 01:22 UTC | |
by svad (Pilgrim) on May 14, 2002 at 17:26 UTC | |
Re: autoload and packages
by TheHobbit (Pilgrim) on May 11, 2002 at 09:54 UTC | |
by smackdab (Pilgrim) on May 11, 2002 at 20:10 UTC | |
Re: AUTOLOAD and packages
by strat (Canon) on May 13, 2002 at 10:14 UTC | |
Re: AUTOLOAD and packages
by svad (Pilgrim) on May 15, 2002 at 16:47 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |