in reply to Input to String OR Array

Why do the lines need to be in an array? If you are confused, start by stating your goal, and forget the implementation for a moment. If we understand what you want to do, then we can help you.

push @array, $_;

might be the answer to your question, but why read into an array just to print it again? Why not just print line-by-line?