open(FILE, '>', $file); truncates $file and opens it for writing.
open(FILE, '>>', $file); opens $file for appending.
open(FILE, '<', $file); opens $file for reading. See open in perlfunc for more information.
In reply to Re: File Truncation Question
by Mr. Muskrat
in thread File Truncation Question
by arrow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |