in reply to reading lines into an array
davido ++
This is the easiest method to each file content into array. If you need some validation for each line you can use grep in front of read_file.use File::Slurp; my @lines = read_file("filename", chomp => 1); # will remove newline f +rom each line
More on reading file content into array,
How can we read each line from a file onto an array?
All is well
In Section
Seekers of Perl Wisdom