Perl Monk, Perl Meditation | |
PerlMonks |
Re: Emptying log fileby imp (Priest) |
on Jan 31, 2007 at 16:52 UTC ( [id://597564]=note: print w/replies, xml ) | Need Help?? |
If possible I would use an existing utility for this, likely logrotate. If not then I would look to existing modules as they have probably done a reasonable amount of testing. At a glance Logfile::Rotate seems reasonable, but I don't have any personal experience with it.
In Section
Seekers of Perl Wisdom
|
|