On Wed, May 20, 2009 at 16:50, <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/