clueless newbie has asked for the wisdom of the Perl Monks concerning the following question:
Legacy code question: Suppose we have a script "S" which uses a number of modules "M1" ... "Mn". Furthermore suppose one of those module "Mi" exports its package global variable $foo. Can S determine the fully qualified name of $foo (in this case $Mi::foo)?
Re: How to de-reference a coderef? (B tricks) supplies a way to determine the fully qualified name of a sub from its coderef. Can something similar be done with variables?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Can the fully qualified name of a global variable be determined?
by LanX (Saint) on Jan 24, 2013 at 14:44 UTC | |
Re: Can the fully qualified name of a global variable be determined?
by LanX (Saint) on Jan 24, 2013 at 14:59 UTC | |
by LanX (Saint) on Jan 24, 2013 at 16:31 UTC | |
Re: Can the fully qualified name of a global variable be determined?
by vinoth.ree (Monsignor) on Jan 24, 2013 at 14:32 UTC | |
Re: Can the fully qualified name of a global variable be determined?
by Anonymous Monk on Jan 24, 2013 at 14:35 UTC | |
Re: Can the fully qualified name of a global variable be determined?
by Khen1950fx (Canon) on Jan 25, 2013 at 20:04 UTC | |
Re: Can the fully qualified name of a global variable be determined?
by clueless newbie (Curate) on Jan 25, 2013 at 19:46 UTC |
Back to
Seekers of Perl Wisdom