good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Unknown problem, throws "Useless use of privt var in void contxt"by bigmacbear (Monk) |
on Jan 21, 2008 at 22:43 UTC ( [id://663457]=note: print w/replies, xml ) | Need Help?? |
I'd take a look at the line if ($month => 10) {which actually boils down to if ("$month", 10) {since "=>" is the "fat comma" operator, used in defining hashes, whose only distinction from the comma operator is that it ensures its left-hand argument is a string. I think you meant to say if ($month >= 10) {instead. Not sure why the error appears so far down, but there you are.
In Section
Seekers of Perl Wisdom
|
|