Thread: Perl code
View Single Post
Old 08-24-2002, 09:04 AM  
FuqALot
Confirmed User
 
Join Date: Dec 2001
Location: Malibu
Posts: 3,817
Quote:
Originally posted by fiveyes
The statement "seek logfile, 0, 0;" does nothing.
I don't agree with that.
First, the example you gave with your first post didn't really get through my compiler ;), that's why I gave another example.

If you drop the seek then it doesn't know where to write, you can try it -- in other words: it won't write anything, :-).
You're right about the truncate though. -- It's not necessarily and I wouldn't include it if speed was a must, but it isn't now.

What I gave is a standard code I've always use for things like this, and it sure works :-).
FuqALot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote