P is for Practical | |
PerlMonks |
Re: breaking a line on printingby abaxaba (Hermit) |
on Mar 19, 2002 at 17:12 UTC ( [id://152782]=note: print w/replies, xml ) | Need Help?? |
There have been some good suggestions here, but no one has mentioned my particular favorite, which I use especially with html output. I push everything onto an array, then just dump the array. This seems to work for me for a couple of reasons: 1. Format whitespace, easier readability. 2. Pass array ref around to different subs, to build up output string in a modular format, without worrying about return values:
In Section
Seekers of Perl Wisdom
|
|