in reply to AUTOLOAD and packages
Vadimpackage mypackage; sub my_lovely_autoload_for_main { # bla bla bla print STDERR "[@_]\n"; } *::main::AUTOLOAD = \&::mypackage::my_lovely_autoload_for_main; package main; fjkre('wdw');
PS. Checking for existing main::AUTOLOAD and calling at appropriate time is left as exercise for reader :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: autoload and packages
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 |