But the same is working if I am using 

orgtext="Hello";
newtext="world";
I tired $intext =~ s/$orgtext/$newtext/ms; but this is not working..

The only problem is string like "C:\\test".

Hridyesh...

-----Original Message-----
From: John Doe [mailto:[EMAIL PROTECTED] 
Sent: 25 October 2005 14:08
To: beginners@perl.org
Subject: Re: extract zip file


Pant, Hridyesh am Dienstag, 25. Oktober 2005 08.08:
> Thanks..
> Now I want to change the string in file.
> orgtext="C:\\test";
> newtext="/bin/old";
> I tired $intext =~ s/$orgtext/$newtext/ms; but this is not working..

Wrong modifiers /ms. See

perldoc perlre
perldoc perlretut

joe

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to