in reply to Re^2: Making a regex case insensitivein thread Making a regex case insensitive
>perl -le "'aA' =~ /(.*)/i && print $1 aA [download]
Only the matching is affected. /i causes lower- and upper-case letters to match lower- and upper-case versions of itself.
Maybe you were thinking of
>perl -le "lc('aA') =~ /(.*)/ && print $1 aa [download]