http://www.perlmonks.org?node_id=127228


in reply to Re: Re: I'm so confused
in thread I'm so confused

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..
print join "\n", @out;
Hope that helps,
Rich