in reply to Re^2: Hash value sorting
in thread Hash value sorting
That code collides with your explanation of the data structure in 987336. Only one can be correct.
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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Hash value sorting
by iHutch105 (Initiate) on Aug 14, 2012 at 15:41 UTC |
In Section
Seekers of Perl Wisdom