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
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
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
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
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;
}
***
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;
}
***