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?
In reply to Re: reading lines into an array
by vinoth.ree
in thread reading lines into an array
by fionbarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |