2 ms·
I remember π and e and type perl -pi -e '...' file.txt
by nicwolff 1y ago
I remember π and e and type
perl -pi -e '...' file.txt
- mpyne 1y agoAnd if you are using a newer Perl they sometimes add features that aren't enabled by default unless you opt-in with a 'use v5.38' style declaration. If you want those features on in your one-liner you can use -E instead of -e perl -pi -E '...' file.txt (I used to need this long ago when I wanted to use the then-new "say" in my one-liners)