in reply to Help with printing values from a hash of hashes
Replace
$data{$system}{$fields[$1]} = $fields[$2];
with
$data{$system}{$fields[0]} = $fields[1];
The $n variables are used to access data captured in regexes with capture brackets, not for indexing arrays.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with printing values from a hash of hashes
by xdg (Monsignor) on Mar 31, 2006 at 02:28 UTC | |
by BrowserUk (Patriarch) on Mar 31, 2006 at 03:02 UTC |