--- "Forest, Gary J" <[EMAIL PROTECTED]> wrote:
> Now I am pretty new at perl, but I have been a C programmer for over
> 15 years. If perl allows you to magically insert into a file that
> would be amazing.
>
> I tested the code below and note that this is not INSERTING text into
> the file, but
: I tested the code below and note that this is not INSERTING text into the
: file, but overwriting existing characters that are already in the file.
oops, you're right. Wasn't looking close enough. It's been a long day.
I think you're also right that there isn't a way to insert chars into a
fil
: Could this be a buffering problem?
: Maybe $|=1 at the top of the script would help?
: Does it need a seek()? Hmm
seek() does appear to work:
open GBOOK, "+
Could this be a buffering problem?
Maybe $|=1 at the top of the script would help?
Does it need a seek()? Hmm
--- Morgan Seppy <[EMAIL PROTECTED]> wrote:
> I've inserted text into a file before, but I can't seem to figure
> this one out. I'm trying to create a guestbook / message list.
> I
PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 3:01 PM
To: [EMAIL PROTECTED]
Subject: Re: inserting text into file
: Could this be a buffering problem?
: Maybe $|=1 at the top of the script would help?
: Does it need a seek()? Hmm
seek() does appear to work:
open GBOOK, "+
I've inserted text into a file before, but I can't seem to figure this one
out. I'm trying to create a guestbook / message list. I'm taking
information from a form and trying to insert it at a certain spot in a
file, namely, the top of the list. My form works fine and I have no trouble
getting