If you want those features on in your one-liner you can use -E instead of -e
perl -pi -E '...' file.txt
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)