Help for this page
use strict; use warnings;
foreach $line (@m3,@m5){ if ($m3[$line] eq $m3[$line+1]) { ... $m5[i+1]=$m5[i]+1; } }