Maybe I had misread this line when I wrote my previous answer. Possibly you really want something like this:
Example under the debugger:$hash1{$_}++ for @elements;
DB<1> @elements = qw/ 1 3 5 4 6/; DB<2> $hash1{$_}++ for @elements; DB<3> x \%hash1 0 HASH(0x600509af0) 1 => 1 3 => 1 4 => 1 5 => 1 6 => 1
In reply to Re^3: Hashes, keys and multiple histogram
by Laurent_R
in thread Hashes, keys and multiple histogram
by f77coder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |