hi friends,

i have a problem in work i want to use a variable in the place of 
pattern to be matched, but i don't know how? but some great brain some ware 
in the world will be knowing it.

hear i explain the program, when i use the patter i get the right 
output when i store it in variable t and use it no output comes help me?

open (H, "<st.htm");#open html file
@a=<H>;
$ln=join('',@a);#store the content in a variable
$t="perl";
while($ln=~m/$t/g)#search the world perl in the html file

#my doubt is hear the  code doesn't work when i use the vaiable t it work's when i use 
the word "perl" instoud of t. but i want to use the variable hear 

{

print "it matches..";

}





help me?

kasi



 

Catch all the cricket action. Download Yahoo! Score tracker

Reply via email to