For string interpolation you may also use scalar context
print "This is ${\SOME_CONSTANT}\n";
With a hash key you can also disambiguate a constant with parens
$h{(SOME_CONSTANT)}
In reply to Re^2: Perl "Constants"
by thunders
in thread Perl "Constants"
by zerohero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |