in reply to Hashes in Perl Modules
... $self->{KOLS} = %results; ...
That's your problem: you're using %results in a scalar context which isn't what you want (you get the underlying bucket usage which isn't very useful). You want $self->{KOLS} = \%results instead which will store a reference to your hash; that or use my $results = {} and store that hashref. See perldoc perlreftut and perldoc perldsc.
|
|---|