You may want to investigate Tie::File as a way to simplify processing a file as an array.
In reply to Re^2: Reading line and Spliting it by GotToBTru in thread Reading line and Spliting it by lazy