http://www.perlmonks.org?node_id=2290


in reply to How do I append or write to the end of a file?

open FH, ">>$output_file" or die "Couldn't open file: $!";

Opens a file for appending.

In an already open file for writing,

seek FH,0,2;

After you get to the end via those methods, simply

print FH "What you want to print\n";