The hash %rows in your code is undefined when you use it so your code does not print enything (if you don't define it somewhere else).for $row (@rows){ for $key (keys %{$row}){ print "$key: $row->{$key}\n"; } }
Update Added keys for extracting keys - thanks to edoc.
In reply to Re: help on hashes
by zby
in thread help on hashes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |