Just another Perl shrine | |
PerlMonks |
Re^5: binmode i/o for perl -pi in-place editingby pryrt (Abbot) |
on Dec 09, 2016 at 14:44 UTC ( [id://1177543]=note: print w/replies, xml ) | Need Help?? |
++shmem. Today, when I try either perl -Mopen=IO,:raw -pi.orig pi.pl src.binor perl -Mopen=IN,:raw,OUT,:raw -pi.orig pi.pl src.bin... it works (file length stays the same with the original). I could have sworn I'd tried the second version, but maybe I had mixed up my test cases, like you said. Good to know that it can actually be done using the -pi magic notation. Thanks again.
In Section
Seekers of Perl Wisdom
|
|