I changed the set method to this and it works now, but why?
Do you have to do something special when passing in the hash to the set method? Is this the best practice?
sub set_hshAgg {
my $self;
my %hshToAgg;
(
$self,
%hshToAgg
) = @_;
$self->{hshAgg} = \%hshToAgg;
}