develooper Front page | perl.beginners | Postings from March 2002

Regarding reg. expr

Thread Next
From:
viswanathan sundararajan
Date:
March 21, 2002 21:14
Subject:
Regarding reg. expr
Message ID:
20020322051406.74382.qmail@web13704.mail.yahoo.com
Hi group,
        I  have the following code.             

$in=join("\n",@rootwords);
while($in=~/(\b$input\b)/g)
{
 .....
 .....
}

Is there any way of finding out the line no where
$input is matched with $in.$in may contains many
instances of $in.I need all those line nos.

Thanx in advance,
visu

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About