Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Hash Syntax Question

by Fletch (Bishop)
on Jul 25, 2007 at 20:15 UTC ( [id://628778]=note: print w/replies, xml ) Need Help??


in reply to Hash Syntax Question

The first contravenes PBP 45 ("Don't use barewords."), but behavior-wise as long as it's a plain bareword there should be no difference.

Stylistically though it'll get you disapproving glares from the purists (granted I still violate 45 myself out of old habits; working with Ruby is slowly changing that (although too much Rails makes me tend to try $hash{ :key } instead . . . )).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-09-19 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (25 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.