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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perl open mode
by Sidhekin (Priest) on Oct 24, 2007 at 00:22 UTC | |
by snopal (Pilgrim) on Oct 24, 2007 at 03:16 UTC |
Back to
Seekers of Perl Wisdom