Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Stupid mistakes I repeatedly make

by jplindstrom (Monsignor)
on Mar 27, 2005 at 13:09 UTC ( #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


Comment on Re: Stupid mistakes I repeatedly make
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (17)
As of 2015-07-01 17:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (13 votes), past polls