in reply to how to populate array with lines from text file?
in thread Answer: how to populate array with lines from text file?

The simplest way is probably:

my @lines=<FH>;