Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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


Comment on Re: Re: symbolic reference to variable in callers name space
Select or Download Code

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 studying the Monastery: (12)
As of 2014-09-18 11:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (112 votes), past polls