The stupid question is the question not asked | |
PerlMonks |
Re: Opening the same file over and over. Shorter way to do this?by Cubes (Pilgrim) |
on Aug 01, 2001 at 18:17 UTC ( [id://101374]=note: print w/replies, xml ) | Need Help?? |
You might also want to take a look at seek, tell, and truncate. You can lock the file, open it once with
+>> (read/write access in append mode, so
you don't blow away whatever's already in there), then
use these calls to do everything you need to do before
closing and unlocking the file.
In Section
Seekers of Perl Wisdom
|
|