- or download this
use strict;
use List::Util qw(reduce);
...
$index++;
$b;
} @data;
- or download this
match 81 starting at index 6
match 82 starting at index 22
- 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";
}
}