> 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]

Reply via email to