There's more than one way to do things | |
PerlMonks |
Re: Re: Re: slurping into scalarsby dingus (Friar) |
on Dec 16, 2002 at 11:11 UTC ( [id://220169]=note: print w/replies, xml ) | Need Help?? |
Is it possible to alter this so every new-line is printed to a new-line?? for some reason this merges all lines together.
Adds a second \n to every line. This may be what you are looking for. Seems a bit odd though. I have done this kind of thing (with some differences) when doing quick and dirty text->html output. Say you want to put <p> tags when you have blank lines but otherwise leave the text untouched then the folowing code works:
Dingus Enter any 47-digit prime number to continue.
In Section
Seekers of Perl Wisdom
|
|