Help for this page

Select Code to Download


  1. or download this
    use strict;
    use List::Util qw(reduce);
    ...
              $index++;
              $b;
           } @data;
    
  2. or download this
    match 81 starting at index 6
    match 82 starting at index 22
    
  3. or download this
    for my $i (0 .. $#data) {
        if ( $data[$i] eq $data[$i+1] && $data[$i] =~ m/81|82/) {
            print "match $data[$i] starting at index $i\n";
        }
    }