That example compiles and works fine (does what you want it to) as is.

On Wednesday, July 10, 2002, at 06:26 PM, Connie Chan wrote:

>
>> It sounds like you want something more like:
>>
>> $string = "ABCDEFGHIJKLMNOP";
>> $x = "ABCDEF";
>> $string =~ s/$x//g;
>>
>> Or am I misunderstanding?
>>
>
> YES!! That's exactly my case.... haha... sorry didn't telling in 
> clear...
> (actually, 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
>>
>>
>> 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
>>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
// George Schlossnagle
// Principal Consultant
// OmniTI, Inc          http://www.omniti.com
// (c) 240.460.5234   (e) [EMAIL PROTECTED]
// 1024D/1100A5A0  1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to