You can use rename to move the file once you decide on a place for it and then use your code to recreate an empty one. If you're putting the backup on another filesystem, you could use move from File::Copy.
In reply to Re: Emptying log file
by kyle
in thread Emptying log file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |