You have to use a ref to a sub, not a string to be evaled.
—Johnsub x { print "I'm here! [@_]\n" }; use lib \&x; use FindBin; print "done.\n";
In reply to Re^3: dynamically loading modules/maintaining dev v. prod modules
by John M. Dlugosz
in thread dynamically loading modules/maintaining dev v. prod modules
by christopherbarsuk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |