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?
In reply to Re: Input to String OR Array
by fishbot_v2
in thread Input to String OR Array
by jriggs420
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |