- or download this
@a1_index{ @a1 } = 0..$#a1;
- or download this
my @a1 = ( qw(one two three four five six seven eight nine ten) );
my @a2 = ( qw(four seven nine) );
- or download this
@indices = ( qw( 3 6 8) );
- or download this
use strict;
use warnings;
...
} @a1;
print "indices DUMP:\n", Dumper(\@indices), "\n";