Re: a though question of using variable in pattern

2003-02-07 Thread Rob Dixon
R. Joseph Newton wrote: > Rob Dixon wrote: >> >> print my $t="href=\"(.*?)\">"; >> outputs >> href="(.*?)"> > > H. this gets me thinking. How does that translate into a regex > when such a variable is passed in? Would Perl do the escaping and > feed the regex something like: > > /hre

Re: a though question of using variable in pattern

2003-02-06 Thread R. Joseph Newton
Rob Dixon wrote: > Hi again Kasi. Still not using /x ? ;-) > > Look: > > print my $t="href=\"(.*?)\">"; > outputs > href="(.*?)"> H. this gets me thinking. How does that translate into a regex when such a variable is passed in? Would Perl do the escaping and feed the regex someth

Re: a though question of using variable in pattern

2003-02-06 Thread Rob Dixon
Kasi ramanathen wrote: > by using this code i get the right answer, but i want to store the > pattern in the variable and use it, for pattern, it fails. what is > the problem. is it related to priority of operator. > > open(IH, " @a=(); > $v=join(' ',@a); same as $v = "@a"; > while($v=~m/href

RE: again me "kasi":a though question of using variable in pattern

2003-02-05 Thread Beau E. Cox
Hi Kasi - > -Original Message- > From: kasi ramanathen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 05, 2003 8:10 PM > To: [EMAIL PROTECTED] > Subject: again me "kasi":a though question of using variable in pattern > > > > by using this co

again me "kasi":a though question of using variable in pattern

2003-02-05 Thread kasi ramanathen
by using this code i get the right answer, but i want to store the pattern in the variable and use it, for pattern, it fails. what is the problem. is it related to priority of operator. open(IH, "); $v=join(' ',@a); while($v=~m/href=\"(.*?)\">/gi) { print "\n$1"; print 1; } ***

a though question of using variable in pattern

2003-02-05 Thread kasi ramanathen
by using this code i get the right answer, but i want to store the pattern in the variable and use it, for pattern, it fails. what is the problem. is it related to priority of operator. open(IH, "); $v=join(' ',@a); while($v=~m/href=\"(.*?)\">/gi) { print "\n$1"; print 1; } ***