in reply to how to populate array with lines from text file?in thread Answer: how to populate array with lines from text file?
my @lines = <FH>;