in reply to Appending to a file

See perlfunc:open. or 'perldoc -f open' from the command line.