in reply to filename dynamic
$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}->();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: filename dynamic
by PiyaPerl (Acolyte) on May 13, 2014 at 06:16 UTC | |
by choroba (Cardinal) on May 13, 2014 at 11:46 UTC |