Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 imbibing at the Monastery: (6)
As of 2014-09-15 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls