open (A, '+<', "somefile.html") or die $!; print A map{s/a/b/g;$_} ;