To open a file for reading:
open(FH, "<filename"); # Opens "filename" for reading. # The < symbol is optional. open (DB, "/home/ellie/myfile") or die "Can't open file: $!\n";