sub max
{
+ count();
return $max;
}
return $self;
}
+sub get_all
+{
+ return values %list;
+}
+
sub del
{
my $self = shift;
my $pref = shift;
- my $ref = $self->delparent($pref->{call});
- return () if @$ref;
- my @out = delete $list{$self->{call}};
- return @out;
+ $self->delparent($pref);
+ unless (@{$self->{parent}}) {
+ delete $list{$self->{call}};
+ return $self;
+ }
+ return undef;
}
sub get