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! Scott Lutz Pacific Online Support Phone: 604.638.6010 Fax: 604.638.6020 Toll Free: 1.877.503.9870 http://www.paconline.net -----Original Message----- From: 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 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 file, even checked > with "tell" and it returns "0",but the following print or syswrite > always appends. > > Why? How do I over-write? perldoc -q "I just want to increment the number in the file" John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]