I'd like to create a Module that calls a sub defined by the caller. For instance:
Should call "foo" after compilation (not during BEGIN). Could the module somehow define an INIT block that calls the sub?use My::Module call => 'foo'; sub foo { ... };
In reply to Let a module call a sub of the caller by voj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |