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/


Reply via email to