Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: case sensitive addition

by murugaperumal (Sexton)
on May 14, 2010 at 04:18 UTC ( #839934=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://839934]
[karlgoethebier]: Good morning
[Discipulus]: good morning vietnam!
[Discipulus]: but there is some perl workshop somewhere? I notice many high level monks disappeared.. we can make PM a squat in the meantime ;=)
[karlgoethebier]: Discipulus: Mmh, who disappeared?
[marto]: morning all
[shmem]: perl -lE '$_="odd mornin";($o=$_)=~ s/^|$/g/g;say$o'

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-06-27 08:05 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (600 votes). Check out past polls.