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


in reply to Re: case sensitive addition
in thread case sensitive addition

  Use the following code to match the case insensitive. 
if($line=~/$pattern/i) { $found++ }

Replies are listed 'Best First'.
Re^3: case sensitive addition
by Nathan_84 (Acolyte) on May 14, 2010 at 22:46 UTC
    Hi thanks for the reply.
    I must be inputting the code you gave me in the wrong place. Please can you say where exactly I should insert this.
    Thanks