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

That's pretty darn clever, except that I think you meant to do the trucate prior to the print in rewrite_crc(), otherwise it prints the new crc then truncates it. But this is the basic idea I was looing for.

What a great place our monestary is! Not to mention the fine people!

Thanks and be well!

Replies are listed 'Best First'.
Re: Re: Re: Writing to DATA
by Anonymous Monk on Nov 14, 2003 at 17:43 UTC

    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.

      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.