Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Unquoted strings with strict

by premchai21 (Curate)
on Dec 12, 2001 at 23:41 UTC ( [id://131367]=note: print w/replies, xml ) Need Help??


in reply to Unquoted strings with strict

This is documented, and used most often in hashes, like this:

%hash = ( foo => 'bar', # note 'foo' not needed bar => 'baz', baz => 'foo', items => 3 ); print $hash{items}; # note 'items' not needed

The => acts like a special sort of comma, which quotes barewords on the left; barewords are also quoted in hash lookups.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-18 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found