in reply to Search DB case-sensitive

Just change
if ($line =~ /$search/){
to
if ($line =~ /\Q$search\E/i){
i modifier makes search case-insensitive and \Q and \E prevents fails on some symbols in the category parameter.

-- Yuriy Syrota

Replies are listed 'Best First'.
Re: Re: Search DB case-sensitive
by lisaw (Beadle) on Nov 28, 2002 at 19:15 UTC
    Thank you!!! That did the trick! Happy Thanksgiving, Lis