After that statement, $self->{lib} contains the first element of the list returned by $lib->get_list('library').
sub get_list { ... push @list, $item if ($item->is(@keywords)); ... return @list; }
You should definitely invest in a test.pl file. Then you can paste these things into it and Try It And See. Sprinkle lots of print statements so you can follow along the code path wherever it is not clear to you.
In reply to Re^5: Perl OO Help: Urgent :)
by SuicideJunkie
in thread Perl OO Help: Urgent :)
by mala
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |