in reply to Re: binmode i/o for perl -pi in-place editing
in thread binmode i/o for perl -pi in-place editing
oops, yes. Thanks. Either I didn't hit Next> enough times when I Super Searched before, or I had a typo, because I didn't find that or a few other similar ones (especially in place edit - how to do).
Tomorrow, I'll have to try the ARGVOUT filehandle from the latter, and the -Mopen=IN,:bytes,OUT,:bytes derived from the former, and see whether one or both help. The other thought I had, while driving home, was that maybe I could grab the select-returned filehandle, and see whether that's the current loop's output handle (I would think so; I'll test it out tomorrow)
And I'm really disappointed I didn't notice the ARGVOUT when reading perlrun, because it was literally just a few lines down from where I was reading in the perldocs, and I should have seen it. :-( Oh, well. Hopefully, good news tomorrow.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: binmode i/o for perl -pi in-place editing
by pryrt (Abbot) on Dec 08, 2016 at 16:20 UTC | |
by shmem (Chancellor) on Dec 08, 2016 at 22:48 UTC | |
by pryrt (Abbot) on Dec 09, 2016 at 14:44 UTC |