if(chomp($array1[$k]) eq chomp($array2[l])) ---------------------------------------^ print"\n$array1[$k],$array2[$l]"; ----------------------------^
In reply to Re: compare 2 arrays of strings
by Anonymous Monk
in thread compare 2 arrays of strings
by sharan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |