Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Stupid mistakes I repeatedly make

by tlm (Prior)
on Mar 28, 2005 at 02:40 UTC ( #442736=note: print w/replies, xml ) Need Help??


in reply to Re: Stupid mistakes I repeatedly make
in thread Stupid mistakes I repeatedly make

my %hash = { };
I found this used several times in code we'd hired some contractors to do. The infuriating thing was that it actually seems to work...

You need to start using the -w flag more, my friend (that or use warnings). If you had, then perl would have warned you:

% perl -we 'my %hash = { }' Reference found where even-sized list expected at -e line 1.

the lowliest monk

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2018-07-17 02:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (354 votes). Check out past polls.

    Notices?