in reply to read and write to the same file

What didn't work? Did open succeed? You should be using the '... or die "open failed: $!"' idiom to check that.

Replies are listed 'Best First'.
Re^2: read and write to the same file
by tachyon (Chancellor) on Oct 26, 2004 at 10:22 UTC

    I think what he means is that if you do and open like +> you get RW access BUT you have stomped on the original file (if it existed). +>> is OK as is +<