in reply to Re: Re: Writing to DATA
in thread Writing to DATA

No. The truncate call works fine where it is, the file will be truncated at its current position (after the write). Of course, you can truncate first and then write too.

Replies are listed 'Best First'.
Re: Re: Re: Re: Writing to DATA
by sweetblood (Prior) on Nov 14, 2003 at 18:23 UTC
    Huh!? I don't get anything after __END__ if the truncate is before the print. I wonder why it work for you but not I. I'm running on an HP-UX 11.i box, how 'bout you?
      Maybe tell() is broken on your system? It works for me on linux.