my $count=0; for ( my $i=0; $i <($#a+1);$i++) { if ( $a[$i] != $b[$i] ) { $count++; } } print $count;
In reply to Re: Compare two arrays
by Anonymous Monk
in thread Compare two arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |