in reply to Re: Initialization of hash element....
in thread Initialization of hash element....
Only certain mutators suppress the warning - those that most make sense with a 0 / "" default. These are:$ perl -we '$a*=0' Name "main::a" used only once: possible typo at -e line 1. Use of uninitialized value in multiplication (*) at -e line 1.
++ and -- (either pre or post), +=, -=, .=, |=, ^=, &&=, ||=.
But last I checked, some of those erroneously warn when used on a tied variable.
|
|---|