Help for this page

Select Code to Download


  1. or download this
    @arr1=(1,2,3,4,5);
    @arr2=(6,7,8,9,10);
    ...
    
    my @mainarr = ( \@arr1, \@arr2, \@arr3 );
    
  2. or download this
    my %index = map { map { $_ => 1 } @$_ } @mainarr;
    print "found" if $index{ 'tofind' };