in reply to breaking a line on printing

You can do all of the wonderful things everyone has already suggested BUT if I read you question correctly you are concerned that your code is ugly... (strange for a Perl programmer.. but OK =) )
print "I want this on one line I want this on another line and finally put this here on yeat another line.\n"
It's practically WYSIWYG. Just hit enter at the end of what you're doing.
--
ellem@optonline.net
There's more than one way to do it, but only some of them actually work.

Replies are listed 'Best First'.
Re: Re: breaking a line on printing
by MAXOMENOS (Scribe) on Mar 19, 2002 at 23:29 UTC
    I'm surprised more people haven't suggested this approach. I see people do this all the time, without ill effects. Has anyone seen this *not* work?