Connie Chan wrote:
>
> > > From: Connie Chan [mailto:[EMAIL PROTECTED]]
> > >
> > > Say, I have an input $x = "ABCDEF";
> > > and I will try to remove $x from a string,
> > > what can I do ?
> > >
> > > Is there something like :
> > >
> > > $x =~ s/$x//g;
>
> Sorry everybody I've make a mist
ednesday, July 10, 2002 3:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: Insert Var in Regex Problem
> >
> >
> > Hi all,
> >
> > Say, I have an input $x = "ABCDEF";
> > and I will try to remove $x from a string,
> >
t;
>
>
>
>> -Original Message-
>> From: Connie Chan [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, July 10, 2002 3:06 PM
>> To: [EMAIL PROTECTED]
>> Subject: Insert Var in Regex Problem
>>
>>
>> Hi all,
>>
>> Say, I have
ally, logic error, my sample seem the var kills itself)
Please help anyway. =)
Rgds,
Connie
> -Original Message-
> From: Connie Chan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 10, 2002 3:06 PM
> To: [EMAIL PROTECTED]
> Subject: Insert Var in Regex Problem
>
&g
on Wed, 10 Jul 2002 22:05:58 GMT, Connie Chan wrote:
> Say, I have an input $x = "ABCDEF";
> and I will try to remove $x from a string,
> what can I do ?
>
> Is there something like :
>
> $x =~ s/$x//g;
That's just a complicated way to say
$x = '';
But this works:
#! perl -w
u
It sounds like you want something more like:
$string = "ABCDEFGHIJKLMNOP";
$x = "ABCDEF";
$string =~ s/$x//g;
Or am I misunderstanding?
-Original Message-
From: Connie Chan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 3:06 PM
To: [EMAIL PROTECTED]
Su
Hi all,
Say, I have an input $x = "ABCDEF";
and I will try to remove $x from a string,
what can I do ?
Is there something like :
$x =~ s/$x//g;
Rgds,
Connie