![]() Preserved Topic: Perl technique question (Page 1 of 1) |
|
---|---|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() OK. Let's say I want to take a file containing many logs, such as this: |
Paranoid (IV) Inmate From: other places |
![]() 1) open existing file for read |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() |
Paranoid (IV) Inmate From: other places |
![]() 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 |
![]() |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() As Linear has already said pretty much everything I can only add usage instructions for those two functions... |
Paranoid (IV) Inmate From: other places |
![]() It's probably also worth dsiscussing how $ |
Paranoid (IV) Inmate From: other places |
![]() Slime: "And I can't read from the file while simultaneously writing to the file." |