In that case, the following code:
is trying to treat %ref as a HOH. IMHO, the outer loop should look like:{foreach $port (@{$ref{$key}{'port'}})
for my $port (keys %ref){ my $host = $ref{$port}; # Process the $host/$port combo ...
I hope life isn't a big joke, because I don't get it.
-SNL
In reply to Re: Hash from mySQL
by NetWallah
in thread Hash from mySQL
by CreationP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |