in reply to Re: Write to filehandle without deleting current text
in thread Write to filehandle without deleting current text

If appending isn't satisfactory and you want to modify existing content you are going to have to go lower level. Open is no longer friend. sysopen is the man for the job.
Bollocks.

open my $fh, "+<", $filename; and open my $fh, "+>>", $filename; allow read-write and read-append access to the file. No need for sysopen here.

Replies are listed 'Best First'.
Re^3: Write to filehandle without deleting current text
by jc (Acolyte) on Oct 05, 2010 at 11:23 UTC
    Hmmm...thanks! Didn't know that!