Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Perl "Constants"

by thunders (Priest)
on Jul 07, 2009 at 03:13 UTC ( [id://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)}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2026-02-07 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.