On May 24, Frank said:
print OUTPUT "@items\n";
When you place an array inside quotes, it's the same as saying
join($", @array)
where $" is the "list separator" variable, whose default value is " " (a
single space).
Thus, if @array is ("this", "that", "those"), then "@array" is "this that
those". However, if @array is ("this\n", "that\n", "those\n"), then
"@array" is "this
that
those
".
Don't put the array in quotes when you're printing it to a file.
print OUTPUT @items;
--
Jeff "japhy" Pinyan % How can we ever be the sold short or
RPI Acacia Brother #734 % the cheated, we who for every service
http://japhy.perlmonk.org/ % have long ago been overpaid?
http://www.perlmonks.org/ % -- Meister Eckhart
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>