in reply to Re^3: Opening a file, editing, copying to another
in thread Opening a file, editing, copying to another

Actually

print;

suffices. STDOUT is assumed if no file handle is provided. However I used print STDOUT; in the sample code to maintain consistency with the OP's sample code.

The important thing for Grundle is to be aware of $_ and where it is used as the default.


DWIM is Perl's answer to Gödel