in reply to ignore cases

using /i modifier on your regex.
eg. @result = grep {/w/i} @lines_to_search_in;

T I M T O W T D I