Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://442617]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2017-11-18 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?