Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: bareword hash keys

by dmmiller2k (Chaplain)
on Jun 22, 2003 at 22:15 UTC ( [id://267998]=note: print w/replies, xml ) Need Help??


in reply to bareword hash keys

Some modules use hash keys beginning with a '-' for certain attributes of objects defined therein (witness, CGI.pm).

The use of a leading '+' before an expression within curly braces may be used to force Perl to treat the expression as a hash key or value, rather than parsing the whole thing as a block.

Not certain if this answers your question precisely, and I am particularly unsure exactly in what ways Perl 5.8 differs from 5.6, but this has been my experience with 5.6 and below.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-28 21:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found