John Doe wrote:
> Pant, Hridyesh am Dienstag, 25. Oktober 2005 11.04:
>>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".
> 
> I was not well prepared with my last answer.
> 
> First, the combination of 
> m: Treat string as multiple lines
> and
> s: Treat string as single line
> is still contradictory.

/m defines how the anchors ^ and $ behave and /s defines how the . behaves so
they are not contradictory.


John
-- 
use Perl;
program
fulfillment

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