On Mon, 2004-05-03 at 11:02, Owen wrote:

> What happens if you try s/\\n/HI/
> (untested)

That would replace a backslash followed by the 'n' character with "HI".

>From the original message:

$_="Hi. \n This is test string";

So there is no backslash followed by an 'n' in $_ (actually, there isn't
even a backslash, as \n is interpreted as a newline). Now if we had
something like

$_='Hi. \n This is test string';

Then we would have a backslash followed by an 'n', but no newline.

Regards,

jac

-- 
Josà Alves de Castro <[EMAIL PROTECTED]>
Telbit - Tecnologias de InformaÃÃo


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