$pack = getfilenamefromdb(); # The path or .pm is not part of the pack +age name. require "pckg1/pckg2/$pack.pm"; no strict 'refs'; $result = ${"pckg1::pckg2::$pack\::"}{func}->();
In reply to Re: filename dynamic
by choroba
in thread filename dynamic
by PiyaPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |