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