open(FILE, "<", "textfile.txt") or die "Cannot open textfile: $!"; while () { print; #just to get started... # something.. } # using a seek() is almost never "right".