or move the require out of the begin block:package SearchMachine; use warnings; use strict; BEGIN { my $mod1 = "/path/MySearch.pm"; require $mod1; }
package SearchMachine; use warnings; use strict; my $mod1 = "/path/MySearch.pm"; require $mod1;
Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"
In reply to Re: dynamic loading of modules
by strat
in thread dynamic loading of modules
by opensourcer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |