perlquestion
zer
Evening,
<p>
I was fiddling about with the open mode '+<'.
<code>
open (A, '+<', "somefile.html") or die $!;
print A map{s/a/b/g;$_} <A>;
</code>
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.8<p>
Thanks