in reply to Help with printing values from a hash of hashes
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Help with printing values from a hash of hashes
by blueflashlight (Pilgrim) on Mar 31, 2006 at 02:41 UTC |