in reply to Re^3: Seeking the longest string in an array
in thread Seeking the longest string in an array

nope, won't work. He's doing case-insensitive searches.
  • Comment on Re^4: Seeking the longest string in an array

Replies are listed 'Best First'.
Re^5: Seeking the longest string in an array
by mpeters (Chaplain) on Dec 13, 2004 at 15:22 UTC
    you're right, I missed that. But even index(lc($data[0]), lc($_)) should be faster than $data[0] =~ /\Q$_\E/i.