On 3/8/06, Eugeny Altshuler <[EMAIL PROTECTED]> wrote:

> How to replace character which looks in vim like ^@ ^M ^D ?

It looks as if you're talking about "control characters". In Perl's
double-quoted strings, and similar places, you may use "\cX" to denote
"control-X". So you could write code like this, perhaps, if you wished
to replace every control-M with three #-signs.

    s/\cM/###/g;

There are other odd characters than control characters. You can see
how to specify them in Perl in the perlop manpage. Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

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