zer has asked for the wisdom of the Perl Monks concerning the following question:
Evening,
I was fiddling about with the open mode '+<'.
I know this is a bit of a mash up. But why is it that the files come out appended to as opposed to just over written. From what this feels like perl is acting like i called a '+>>'. Perl 5.8.8open (A, '+<', "somefile.html") or die $!; print A map{s/a/b/g;$_} <A>;
Thanks
Back to
Seekers of Perl Wisdom