On 3/13/07, Bill Jones <[EMAIL PROTECTED]> wrote:
snip
In answer to your question, for example under VIM, the ^@ the other
poster is seeing is actually \n (which is what the OP wants) -- but I
am in my own Universe =)
So, when I hit ^V^J VIM displays ^@
snip
That must be an artifact of Vim because when I say
[EMAIL PROTECTED]:~$ cat <<! >ctlj
^j
!
[EMAIL PROTECTED]:~$ od -b ctlj
0000000 012
0000001
Which is what I would expect since ^j is octal 12 which is linefeed
which is the same as \n on unix machines:
[EMAIL PROTECTED]:~$ perl -e 'print "\n"' > perlctlj
[EMAIL PROTECTED]:~$ od -b perlctlj
0000000 012
0000001
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/