Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need to some how merge it into one hash . Maybe if I understand Hash of Hash , I will be able to see if my approach is possible. Thanks all%one; %tow; while (<INPUT>) { chomp(my @line = split/\s+/); push @{$one{$r[0]}}, [ @line[1..$#r] ]; push @{$tow{$r[1]}}, [ @line[2..$#r] ]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash of Hash
by jeffa (Bishop) on Feb 28, 2004 at 23:20 UTC | |
|
Re: Hash of Hash
by neniro (Priest) on Feb 28, 2004 at 23:17 UTC | |
by Skeeve (Parson) on Feb 29, 2004 at 09:49 UTC | |
|
Re: Hash of Hash
by Skeeve (Parson) on Feb 29, 2004 at 00:12 UTC |