Hi list
My colleaque and I have just had a small disagreement with each other
about file locking and reading / ammending a txt file.
To up date a CSV file (it must be quick and / or effient), my colleaque
likes to either read the whole file in memory (I dont like this) or
open the file and use seek etc.
I like to open the file, open a tem, use a while, print the line to the
temp file, and on the line im looking for do what I need then print to
the temp file and then close the file and then unlink the original and
then rename the file.
The other one is file locking. My colleaque says the flocking does not
work on Linux, where as I say the flock works for both Linux as well as
win32. I read the perldocs and I have not seen anything proving him
right, but as the same time I have not seen anything that proves him wrong.
So if anyone share their experiences or tips is would be most appreciated.
Please bare with me on this, still new to perl / programming.
Kind Regards
Brent Clark
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>