in reply to Checking for all cases of a word

There's no need to upper or lower-case everything, you can use i as a regex suffix for a case insensitive match. eg:

if($current_subject =~ /\b\Q$filter\E\b/i)

----------
My cow-orkers were talking in punctuation the other day. What disturbed me most was that I understood it.

Replies are listed 'Best First'.
Re: Checking for all cases of a word
by MonkPaul (Friar) on Jul 04, 2005 at 14:41 UTC
    Cheers everybody.
    A simple solution, but when you dont know the code begins to grow in size to try and resolve it.