sub list { my $self = shift @_; my $key = shift @_; my $aref = $self->{$key}; return wantarray ? @$aref : $aref; } #### my @population = $self->list("_population"); #### sub remove { my $self = shift; my $type = shift @_; my $target = shift @_; $self->{$type} = [ grep { $target ne $_ } @{$self->{$type}} ]; return; }