in reply to Re^2: requiring pm modules
in thread requiring pm modules
Added 3 min later: if you don't know the name of the subroutine beforehand (and that's why you have it in $x), you can achieve a similar result without symbolic references by using object-oriented notation:
require Value; $x = 'getValue'; Value->$x();
Note that you'd have to change the getValue subroutine so that it shifts its first argument, which will hold the package name.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: requiring pm modules
by revdiablo (Prior) on Nov 03, 2004 at 23:08 UTC | |
|
Re^4: requiring pm modules
by Anonymous Monk on Nov 03, 2004 at 21:15 UTC | |
|
Re^4: requiring pm modules
by Anonymous Monk on Nov 03, 2004 at 21:17 UTC |