go ahead... be a heretic | |
PerlMonks |
Re: Re: Re: I'm so confusedby rchiav (Deacon) |
on Nov 24, 2001 at 08:52 UTC ( [id://127228]=note: print w/replies, xml ) | Need Help?? |
Generally speaking, you're not going to want new lines in your actual data. That may not always be the case, but if you're going to work with what's in the array, the new line char might get in the way. The best way (in my opinion), would be to chomp off the new line char, and then when you output it, print new lines. There's several ways to do that. The easiest way would be to take the array and join all elements together with new lines. like so..
Hope that helps, Rich
In Section
Seekers of Perl Wisdom
|
|