in reply to Checking for all cases of a word

If i understood your question correctly, here is my suggestion:

You can make use of option modifier 'i' - ignore case.

Also you go through perlre.

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

Prasad