in reply to Re^4: Perl OO Help: Urgent :)
in thread Perl OO Help: Urgent :)
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.
|
|---|