http://qs321.pair.com?node_id=206596


in reply to Re: Re: Using OPEN to append to a file
in thread Using OPEN to append to a file

should be able to make acouple of small edits to it to get rid of that blank line. Is that blank line a big deal or can you live with it, I for one would like it, then it leaves breaks inbetween writes.

Update: ok take another look at the code again I added a pop line to get that line off the file, the program was leaving the first element of the array in the file so I pop it off in to nothing, probably not the best thing to do but I'm not sure what else would work. after all by just setting $#log to 0 aren't I just loosing the whole file in memory somewhere. I'm not sure

jjdraco
learning Perl one statement at a time.
  • Comment on Re: Re: Re: Using OPEN to append to a file

Replies are listed 'Best First'.
Re: Re: Re: Re: Using OPEN to append to a file
by /dev/trash (Curate) on Oct 20, 2002 at 02:27 UTC
    Well it wasn't a blank line it. It was like you said later the first element of the array in the file.