Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Stupid mistakes I repeatedly make

by jplindstrom (Monsignor)
on Mar 27, 2005 at 13:09 UTC ( [id://442617]=note: print w/replies, xml ) Need Help??


in reply to Stupid mistakes I repeatedly make

When initializing a hashref, I sometimes mistakenly use = instead of => when going back to add new item, especially (for some reason) when they are deeply nested.

my $hr = { foo => "bar", bar = "baz", #boom };

/J

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2025-07-08 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.