Help for this page

Select Code to Download


  1. or download this
    foreach my $i (@array)      
            {
            if(grep @array[$i], @files)
                {
                my $match = (grep @array[$i], @files);
    
  2. or download this
    $ perl -we '
    my @array = qw( file1 file2 file3 );
    ...
    $i = file1
    $i = file2
    $i = file3
    
  3. or download this
    $ perl -we '
    my @array = qw( file1 file2 file3 );
    ...
    $i = 0
    $i = 1
    $i = 2