in reply to use/import params during require
Are we talking about inside a coderef that's been pushed onto @INC? You could do the require, then redefine Module::import like:
my $orig_import = \&Module::import; *Module::import = sub { my ($module, @list) = @_; # do something here goto $orig_import; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use/import params during require
by bulk88 (Priest) on May 12, 2012 at 16:23 UTC | |
by tobyink (Canon) on May 12, 2012 at 18:44 UTC |