in reply to symbolic reference to variable in callers name space

for your warn example, i believe you want:
warn(${"${pkg}::DEBUG"} . " in $pkg"); # see what it gets

- danboo

Replies are listed 'Best First'.
Re: Re: symbolic reference to variable in callers name space
by spq (Friar) on Aug 07, 2002 at 14:23 UTC
    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