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"; [download]
cheers
tachyon