On Mon, 3 May 2004 15:00:20 +0530 "Durai" <[EMAIL PROTECTED]> wrote:
> Hello All, > > I am having the following lines of code to remove "\n" from string. > > $_="Hi. \n This is test string"; > s/ > (\n) > /HI > /xisg; > > print; > > I expected the output like: > > Hi. HI This is test string > > But I got: > > Hi. HI > This is test string What happens if you try s/\\n/HI/ (untested) Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>