Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
The error i get is 'cant coerce array into hash'. any help would be appreciated. thankswhile(<FH>){ $line=$_; chomp($line); @values=split(/,/,$line); @type_val=splice(@values,3,2); $ref_a=\@type_val; ($type_value,$key_type)=split(/\./,$values[2]); push(@{$hoh{$key_type}},$type_value); #works fine push(@{$hoh{$key_type{$type_value}}},$ref_a); #Does NOT WORK }
DATA - the file consists lines like :
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hashes of hashes
by arkturuz (Curate) on Jan 15, 2007 at 10:25 UTC | |
by Anonymous Monk on Jan 15, 2007 at 10:48 UTC | |
by wfsp (Abbot) on Jan 15, 2007 at 11:01 UTC | |
by Anonymous Monk on Jan 15, 2007 at 11:08 UTC | |
|
Re: Hashes of hashes
by inman (Curate) on Jan 15, 2007 at 14:27 UTC | |
by Anonymous Monk on Jan 16, 2007 at 04:24 UTC | |
|
Re: Hashes of hashes
by wfsp (Abbot) on Jan 15, 2007 at 10:47 UTC | |
by Anonymous Monk on Jan 15, 2007 at 10:56 UTC | |
by wfsp (Abbot) on Jan 15, 2007 at 11:07 UTC | |
by Anonymous Monk on Jan 15, 2007 at 11:11 UTC |