Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: symbolic reference to variable in callers name space

by spq (Friar)
on Aug 07, 2002 at 14:23 UTC ( #188322=note: print w/replies, xml ) Need Help??


in reply to Re: symbolic reference to variable in callers name space
in thread symbolic reference to variable in callers name space

Thank you both! That does indeed work. I did need to change:
warn("DEBUG = ${"${pkg}::DEBUG"} in $pkg");

in my code (which threw a syntax error about missing bracket!?), to:
warn("DEBUG = " . ${"${pkg}::DEBUG"} . " in $pkg");

Which did the trick for testing. Thanks again! Sean

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://188322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2016-09-29 19:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (558 votes). Check out past polls.