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.
In reply to Re: Help with printing values from a hash of hashes
by BrowserUk
in thread Help with printing values from a hash of hashes
by blueflashlight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |