Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!world!decwrl!mcnc!uvaarpa!mmdf From: worley@compass.com (Dale Worley) Newsgroups: comp.lang.perl Subject: Newlines in prints Message-ID: <1991Feb20.155958.8027@uvaarpa.Virginia.EDU> Date: 20 Feb 91 15:59:58 GMT Sender: mmdf@uvaarpa.Virginia.EDU (Uvaarpa Mail System) Reply-To: worley@compass.com Organization: The Internet Lines: 23 From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Well, you can save two characters by defining $n = "\n", but it sounds more like you want to set $\ to "\n" and then have a subroutine for printing without the newline: This leaves various problems, mostly that setting $\ makes adding the newlines mandatory. Also, a subroutine for printing won't have the same syntax as "print". What I want is a quick-n-easy punctuation mark that can be inserted at the end (and preferably anywhere) in the list argument of "print" that means "insert an element into the list here which is a string containing a newline". Of course, all the punctuation marks are taken up. :-( Perhaps we need to add a new punctuation digraph! Dale Dale Worley Compass, Inc. worley@compass.com -- A real man is someone whose .login contains "exec emacs".