home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5626 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  749 b 

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!rutgers!carssdf!watson
  2. From: watson@carssdf.UUCP (- Self Empl. Sys.Integrator)
  3. Newsgroups: comp.lang.perl
  4. Subject: how to 'write' cr-nl
  5. Message-ID: <399@carssdf.UUCP>
  6. Date: 31 Aug 92 16:35:41 GMT
  7. Organization: John Watson (Self Employed System Integrator)
  8. Lines: 12
  9.  
  10. Is there an easy way to write CR-NL at the end of the lines
  11. instead of just "\n".  Sort of like  $\ = "\r\n", except make
  12. it apply to the write statement?
  13.  
  14. Alternatly is there an EASY way to set the onlcr flag on 
  15. STDOUT in some portable way when you don't know for sure
  16. what device it is pointing to (so I can't do system('stty...)..
  17.  
  18. This must be simple, I've got to be overlooking the easy
  19. solution.
  20.  
  21. John Watson     watson@carssdf.UUCP
  22.