http://www.perlmonks.org?node_id=1044616


in reply to making regex case insensitive

if ($array_A[$ds] =~ /test/i)

Replies are listed 'Best First'.
Re^2: making regex case insensitive
by shawnhcorey (Friar) on Jul 16, 2013 at 22:45 UTC

    There is also:

    /(?i:test)/

    This is especially useful if you want part of the pattern case-sensitive and part not. For example, the first letter may be upper or lowercase but the rest must be lowercase.

    /(?i:t)est/