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').

vs
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.


The monks can fry your fish, and they can give you some tips and some bait, but you still need to wake up and climb onto the boat.