XP is just a number | |
PerlMonks |
Re: Print the Global special constant Variableby Anonyrnous Monk (Hermit) |
on Feb 09, 2011 at 12:56 UTC ( [id://887186]=note: print w/replies, xml ) | Need Help?? |
If you absolutely must interpolate the constant (I'm not sure why, and what's wrong with your first solution using concatenation...), you can say:
The idea is just to create a reference to whatever you want to interpolate, and then dereference it using the double-quote-interpolated sigils ${...} or @{...}.
In Section
Seekers of Perl Wisdom
|
|