http://www.perlmonks.org?node_id=442736


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