Help for this page
my @lines; open FILE, "<", "foo.txt"; ... open FILE, ">", "foo.txt"; print FILE, @lines; close FILE;