Help for this page
open (FH, "<filename.txt") || die "could not open file: $!"; @ODB = <FH>; ... print NFH "$line"; } close (NFH);