In the constructor I see you initialise the field _counts with a hash reference. Where do you now get a scalar reference from?
It would help if you dump $self before sorting, so we can see what the data structure really looks like.
use Data::Dumper; print Dumper $self;
In reply to Re^3: Hash value sorting
by daxim
in thread Hash value sorting
by iHutch105
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |