Show us what you want to achieve. Something like this:
use warnings; use strict; use Data::Dumper; my %hoh; while (<DATA>) { my @items = split ' '; push @{$hoh{'this'}->{'that'}->{'theOther'} }, [@items]; } print Dumper (\%hoh); __DATA__ eggs bacon cheese tomatoes potatoes onions beans peas cabbage
$VAR1 = { 'this' => { 'that' => { 'theOther' => [ [ 'eggs', 'bacon', 'cheese' ], [ 'tomatoes', 'potatoes', 'onions' ], [ 'beans', 'peas', 'cabbage' ] ] } } };
In reply to Re^3: unique data in dynamic hash
by GrandFather
in thread unique data in dynamic hash
by rsennat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |