from open,
If MODE is ">", the file
is opened for output, with existing files first being truncated
("clobbered") and nonexisting files newly created. If MODE is
">>", the file is opened for appending, again being created if
necessary.
So, your files $_[0] to $_[3], is been "clobbered", by the ">" mode, while the last one should print out.
In reply to Re^3: opened file being overwritten
by 2teez
in thread opened file being overwritten
by perishowl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |