Am I missing something obvious, or doing something dumb (or both?)
Unfortunately, I think so. You're using $1 and $2 when you probably just want 1 and 2.
$data{$system}{$fields[$1]} = $fields[$2]; # problem here
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In reply to Re: Help with printing values from a hash of hashes
by xdg
in thread Help with printing values from a hash of hashes
by blueflashlight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |