From perldoc -f open:
open FILEHANDLE,MODE,EXPR,LIST
and, from paragraph 5:
.... If MODE is '>', the file is truncated and opened for output, being created if necessary. If MODE is '>>', the file is opened for appending, again being created if necessary.
Clarification of para 1
In reply to Re: Append to file or create file depending on input filename.
by ww
in thread Append to file or create file depending on input filename.
by markuhs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |