open(INFILE, '<', 'textfile.txt') or die "unable to open textfile.txt: $!"; ...