In the foreach you are converting the hash into an array and loop through all the keys and values. So $r is a key in the first iteration, then a value, then a key. $r->result makes no sense either, since 'result' is the name of the hash and should be before the key
foreach my $r (keys %$result){ print $result->{$r}->{Person}->{commonname}; }
$result is a pointer to a hash and $r is now a key of it (note the keys function)
In reply to Re: SOAP::Lite and hash of hashes
by jethro
in thread SOAP::Lite and hash of hashes
by joec_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |