On May 20, 2012, at 8:28 AM, Shlomi Fish wrote:

> The problem is that «$self->animals» returns an (unblessed) array reference 
> and
> not the list of individual animals, so you should do something like:
> 
> for my $animal (@{ $self->animals }) {

        Thanks, Shlomi.  That did it.  Moose is a new animal to me, so 
hopefully scripts like this will help me wrap my head around it.

Marc
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to