Or... another non-perl solution: echo "" > log.txt
Teddy ----- Original Message ----- From: "Bryan R Harris" <[EMAIL PROTECTED]> To: "Beginners Perl" <beginners@perl.org> Sent: Friday, August 12, 2005 2:54 AM Subject: Re: Emptying a log file.... > > > Not a perl solution, but: > > cp /dev/null myfile > > - B > > > > Hello Listers > > > > Is there any way in perl to effectively clear the contents of an > > ***existing*** file (making the file empty) ? I have a log file that > > I'd like to empty out after it reaches a certain maximum file size. > > > > thanks in advance > > Tony > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>