From: Scott Lutz [EMAIL PROTECTED]
Re : perldoc -q I just want to increment the number in the file
How does one find (out about) these obscure perldoc functions?
My word!
The of-so-usual -h option gives you information on perldoc's ussage:
perldoc [options]
Hi John,
Just brilliant, thanks.
Ken
-Original Message-
From: John W. Krahn [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 09, 2002 12:08 AM
To: [EMAIL PROTECTED]
Subject: Re: over-writing a file
Ken Cole wrote:
Hi,
Hello,
I have a file with say the value 02
Hi,
I have a file with say the value 02 in it.
I can open the file, lock the file, read the value, increment the value
and do a write but the write always appends and never over-writes the
exisitng value. I of course then unlock and close.
I do a seek before the write to the beginning of the
Ken Cole wrote:
Hi,
Hello,
I have a file with say the value 02 in it.
I can open the file, lock the file, read the value, increment the value
and do a write but the write always appends and never over-writes the
exisitng value. I of course then unlock and close.
I do a seek before
Hi Ken,
I encountered exactly the same problem today: How to read a file
AND change something in it? I was not able to do both of them at
the same time.
I am sure there is a more correct way to do it, but my solution (in
the spirit of TIMTOWTDI) was to write to a temporary file and then
Anette Seiler wrote:
Hi Ken,
I encountered exactly the same problem today: How to read a file
AND change something in it? I was not able to do both of them at
the same time.
I am sure there is a more correct way to do it, but my solution (in
the spirit of TIMTOWTDI) was to write to a
: John W. Krahn [mailto:[EMAIL PROTECTED]]
Sent: March 8, 2002 6:08 AM
To: [EMAIL PROTECTED]
Subject: Re: over-writing a file
Ken Cole wrote:
Hi,
Hello,
I have a file with say the value 02 in it.
I can open the file, lock the file, read the value, increment the
value
and do a write