|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Incrementing a Hash Valueby Juerd (Abbot) |
| on Jun 14, 2002 at 13:34 UTC ( [id://174650]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
$thes_name{$fields[1]} = thes_name{$fields[1]}++; This being a no-op, and all postincrement stuff aside, you're missing a $ before thes_name.
19:29 < ua> did anyone bother mentioning to the guy that he was missing a '$'
in his postdec?
(No, just placing the $ there won't do what you want. The correct example has already been given.)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||