in reply to Space prepended to Array Print
Usually you want to get rid of terminating newlines on your inputs and add them back in appropriately after processing.
If you had "chomp"ed your input lines you'd have gotten all your data on a single line with spaces between, which is a more typical example of this feature.