my %hash; for my $nar ( @nar ) { my ( $key1, $key2 ) = split /\s*-\s*/, shift @$nar; push @{ $hash{ $key1 }{ $key2 } }, $nar; }
In reply to Re: Constructing HoHoA from AoA
by Anonymous Monk
in thread Constructing HoHoA from AoA
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |