in reply to help on hashes
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: help on hashes
by edoc (Chaplain) on May 12, 2003 at 14:06 UTC | |
by Anonymous Monk on May 12, 2003 at 14:46 UTC | |
by edoc (Chaplain) on May 13, 2003 at 00:29 UTC |