top | item 45292675 (no title) nicwolff | 5 months ago I remember π and e and type perl -pi -e '...' file.txt discuss order hn newest mpyne|5 months ago And 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)
mpyne|5 months ago And 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)
mpyne|5 months ago
If you want those features on in your one-liner you can use -E instead of -e
(I used to need this long ago when I wanted to use the then-new "say" in my one-liners)