1. do "test_func.pm"; instead of use test_func;
2. change test_func.pm to a proper package that exports its functions:
package test_func; use base qw(Exporter); our @EXPORT = qw(test_me); sub test_me { my $txt = shift; print "Exec of test_me with: $txt\n"; return $txt; } 1;
In reply to Re: Loading a module into many packages
by mreece
in thread Loading a module into many packages
by arkturuz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |