#some code to show what I was talking about ... $file = 'your/path/or/is\it\this\way'; # open and slurp in open(FH,$file) or die "make a helpful die statement here"; @lines_of_file = ;