in reply to append text to existing file
You want >> not >
open F, ">$file" or die "Can't create/overwite $file $!\n";
open F, ">>$file" or die "Can't append to $file $!\n";
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (403 votes). Check out past polls.