On Wed, May 20, 2009 at 05:00:24PM -0400, Chas. Owens wrote: > On Wed, May 20, 2009 at 16:50, <pa...@compugenic.com> wrote: > snip > > for my $i ($client->{count}) { > snip > > The problem is one of precedence, dereferencing with @ takes > precedence over ->, so Perl sees > > for my $i (@{$client}->{count}) { > > The solution is to use @{} to tell Perl what expression to use to > produce the reference > > for my $i (@{$client->{count}}) { > > -- > Chas. Owens > wonkden.net > The most important skill a programmer can have is the ability to read. > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > >
Thanks to all for the suggestions. The suggestion by Chas (and others) to enclose the array reference in curly braces worked. thanks again. Pablo -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/