%hash{$_}++ for @array
I'd expect it to be more like map instead of for, so that you can do
but I'm 100% guessing.@old = %hash{@keys} >>++;
ihb
See perltoc if you don't know which perldoc to read!
In reply to Re^5: hash and array
by ihb
in thread hash and array
by zulqernain
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |