Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Perl "Constants"

by thunders (Priest)
on Jul 07, 2009 at 03:13 UTC ( #777729=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl "Constants"
in thread Perl "Constants"

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)}


Comment on Re^2: Perl "Constants"
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://777729]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (15)
As of 2014-07-23 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (152 votes), past polls