Re: inserting text into file

2001-04-25 Thread Paul
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

Re: inserting text into file

2001-04-25 Thread Timothy Kimball
: 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, "+

RE: inserting text into file

2001-04-25 Thread Timothy Kimball
: 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

RE: inserting text into file

2001-04-25 Thread Forest, Gary J
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, "+

RE: inserting text into file

2001-04-25 Thread Paul
--- "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