$hist1{@element}++;
@element in scalar context returns the size of the array @element. You shift the array before, so the key is the number of original elements minus 1. Are you sure that's what you want to hash by?
In reply to Re: Hashes, keys and multiple histogram
by choroba
in thread Hashes, keys and multiple histogram
by f77coder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |