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.
In reply to Re^2: Write to filehandle without deleting current text
by JavaFan
in thread Write to filehandle without deleting current text
by learn_perl_se
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |