home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!rutgers!carssdf!watson
- From: watson@carssdf.UUCP (- Self Empl. Sys.Integrator)
- Newsgroups: comp.lang.perl
- Subject: Re: how to 'write' cr-nl
- Message-ID: <400@carssdf.UUCP>
- Date: 1 Sep 92 17:41:20 GMT
- References: <399@carssdf.UUCP> <ASHERMAN.92Sep1091415@laser.fmrco.com>
- Reply-To: watson@carssdf.UUCP (John Watson -- Self Empl. Sys.Integrator)
- Organization: John Watson (Self Employed System Integrator)
- Lines: 24
-
- In article <ASHERMAN.92Sep1091415@laser.fmrco.com> asherman@fmrco.COM writes:
- >
- >>>>>> watson@carssdf.UUCP (- Self Empl. Sys.Integrator) said:
- >
- >watson> Is there an easy way to write CR-NL at the end of the lines
- >watson> instead of just "\n". Sort of like $\ = "\r\n", except make
- >watson> it apply to the write statement?
- >
- >What's wrong with:
- >
- >format STDOUT =
- >@<<<<<<<<<<<<<<<<<< Test: @>>>>>>>>>>>> ^M
- >.
-
- My problem here, besides forgeting to put it in on a line or two, and
- creating a debugging mess is possibily
-
- entering spaces after the ^M which are not visible by the vi editor,
- creating leading white space on the next line.
-
- With all the printers that don't cr on nl, I just thought there must be
- some easy way to do this correctly.
-
- John Watson
-