Hi All:
Curtis "Ovid" Poe wrote:
>Just had this problem. To solve:
>
> cat -vE somescript.pl
Remember in all of this that it is not the script that is giving
me problems, it is the output of the script in two ways, a heredoc written
to an array and a scalar written to an array. I'm taking an *.htm file
created on the Windows box and completely reformatting it on the Linux box
and creating a new file with new and old information.
I ran this (cat ...) on the perl script and all of the line ends
are "$". (pardon the bad grammar) However, when I ran it on the output of
the perl script, (Aaddress.htm for example) it's another story. Those lines
created by the heredoc show no line ends. The lines created by the Linux
scripts (scalars with "\r\n" line ends) show "$". Lines copied from the
original file show line ends as "^M$".
In the script itself I'm using "\r\n" as the line end for the
scalar variables that are then written to the array. The heredoc is another
matter. Here's the heredoc syntax I'm using:
@outbuffer = split /\n/, <<"head";
<html>$
<head>$
Is it possible that "split /\n/," is throwing away the line ends?
Maxim wrote:
>1. change your editor. i prefer me (www.multiedit.com), correctly handles
>many problems, but, i'm afraid, not a beginners tool.
I'm trying to move all my production editing over to the Linux
box. I'm stuck at a multiple monitor support issue at the moment but when
that is solved I'll be making the move. That precludes spending bucks on
yet another Windows application.
>2. you can use
>perl -p -i -e 's/\r//g' filename # dos->unix
>perl -p -i -e 's/\n/\r\n/g' filename # unix->dos
>on your linux.
I've used "\r\n" with no effect.
>3. you can setup X server on your windows computer, and run linux
>editor's (emacs, nvi, ... ) from linux. this is a long song, but i
>can sing, if anyone is interested :)
I was running Xfree86 but blew it up while trying to implement
multi-head operations. No more time to fix it. I've got to live with the
current situation for a while yet.
I'm sorry that I'm not explaining this very well but I am learning
from all of this. Thanks for all your help.
Ron Woodall
---------------------------------------
Ron Woodall
[EMAIL PROTECTED]
The Compendium of HTML Elements
"your essential web publishing resource"
- available at/disponible à:
http://au.htmlcompendium.org/index.htm (Australia)
http://www.htmlcompendium.org/index.htm (Europe and North America)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]