The say keyword Edit
say is similar to print, but adds automatically a newline character. Using a real FILEHANDLE like FH instead of an indirect one like $fh without a LIST results in printing the contents of $_ to the file.
To use this command, a use 5.10 should be added.
say FILEHANDLE LIST say FILEHANDLE say LIST say