in reply to Re: A new user question on OO Perl
in thread A new user question on OO Perl
sub get_list { my ($self, @capwords) = @_; my $items = $self->{items}; my @list = (); return @list unless $items; foreach my $item (@{$items}) { push @list, $item if ($item->is(@capwords)); } return @list; }
sub get_list { my ($self, @keywords) = @_; return $self->{lib}->get_list(@keywords); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A new user question on OO Perl
by chromatic (Archbishop) on Dec 19, 2007 at 08:42 UTC |