⭐ 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,
After you get to the end via those methods, simply
print FH "What you want to print\n";