in reply to printing elements of an array on new lines
{ local $" = "\n"; print "@array"; } [download]
print join("\n", @array); [download]
All code given here is UNTESTED unless otherwise stated.