Preserved Topic: Perl technique question (Page 1 of 1) |
|
---|---|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 05-16-2001 01:09
OK. Let's say I want to take a file containing many logs, such as this: |
Paranoid (IV) Inmate From: other places |
posted 05-16-2001 01:24
1) open existing file for read |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 05-16-2001 01:41 |
Paranoid (IV) Inmate From: other places |
posted 05-16-2001 02:24
rename() and unlink() should work quite nicely, although I don't have the manpages in front of me. WarMage? |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 05-16-2001 05:00 |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 05-16-2001 08:52
As Linear has already said pretty much everything I can only add usage instructions for those two functions... |
Paranoid (IV) Inmate From: other places |
posted 05-16-2001 16:39
It's probably also worth dsiscussing how $ |
Paranoid (IV) Inmate From: other places |
posted 05-16-2001 16:46
Slime: "And I can't read from the file while simultaneously writing to the file." |