in reply to Hashes, keys and multiple histogram
$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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hashes, keys and multiple histogram
by f77coder (Beadle) on Aug 17, 2014 at 07:29 UTC | |
by Laurent_R (Canon) on Aug 17, 2014 at 08:50 UTC | |
by f77coder (Beadle) on Aug 17, 2014 at 13:09 UTC | |
by Laurent_R (Canon) on Aug 17, 2014 at 13:27 UTC | |
by Laurent_R (Canon) on Aug 17, 2014 at 08:42 UTC |