- or download this
our @ISA = qw(
Collection::Bounded
Collection::Unique
Collection::Generic
);
- or download this
sub add {
my $self = shift;
...
return undef if $self->contains($thing);
return $self->SUPER::add($thing);
}
- or download this
sub add {
my $self = shift;
...
return $collection->add($thing);
}
- or download this
sub AUTOLOAD {
my $self = shift;
...
$func =~ s/.*:://;
return $self->{collection}->$func;
}