Help for this page

Select Code to Download


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