in reply to Piping output into a log file
You can simply open the file in append mode, open my $log, '>>', $someFile or die $!;
After Compline,Zaxo