in reply to Let a module call a sub of the caller
use My::Module call => sub { ... };
The catch is that if the anonymous subroutine you pass to the module gets called directly from within the import() subroutine, you may not call subroutines defined under the use statement. So you may have to move the use statement a little lower in the code. It doesn't have to be right on top!
Jenda
Enoch was right!
Enjoy the last years of Rome.
|
|---|