in reply to symbolic reference to variable in callers name space

ITYM ${"${pkg}::DEBUG"}.

${$pkg::DEBUG} is the variable named by the value contained in the variable $DEBUG in package pkg.