|more useful options|
Indirect variable nameby FreakyGreenLeaky (Sexton)
|on Nov 20, 2008 at 12:50 UTC||Need Help??|
FreakyGreenLeaky has asked for the wisdom of the Perl Monks concerning the following question:
Following on from the great explanation by LanX here Re: Accessing list of package names in a module, I'm now trying to figure out how to dereference a variable who's name has been previously extracted from a module.
Simply put, given the following variable and it's contents (where Util::Stuff:aaa1 comes from a loaded module):
I wish to get at the 'flag' value which is defined in Util::Stuff:aaa1 as:
Something akin to:
ie, "interpolate" the variable to get the actual name before dereferencing.
Normal usage of Util::Stuff::aaa1 would be
Apologies if I haven't explained myself clearly.