The stupid question is the question not asked | |
PerlMonks |
Re: How do I compare two strings against two arrays respectively?by ariels (Curate) |
on Mar 27, 2001 at 17:43 UTC ( [id://67486]=note: print w/replies, xml ) | Need Help?? |
Here's another way to do it, if I correctly understand what you want to do. You want to find an index $i for which $a[$i] eq $a and $b[$i] ne $b (that is, your condition holds at the same index). So why are you searching the array elements? It's better to search for an appropriate index!
In Section
Seekers of Perl Wisdom
|
|