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 wandering the Monastery: (5)
As of 2015-07-06 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls