- or download this
use Data::Dumper;
my @bigarray = (
...
print Dumper \@bigarray; # before
...
print Dumper \@bigarray; # after
- or download this
splice @$_, 0, 1, split /\*/, $_->[0] for @bigarray;
- or download this
foreach my $arr ( @bigarray ){
my $item = shift @$arr;
unshift @$arr, split /\*/, $item;
}