News for hackers. Stuff that matters.
Re:Useful Perl one-liners (2013) by JadeNB on Tuesday November 29, 2016 @01:26PM (#13065002)
As the URL (but not, sadly, the website itself) suggests, you're exhausting yourself with all that negativity; you can remove two '-'s (as well as two ' 's), and get a much tastier command line:

    perl -pie 's/foo/bar/gi' ./*.txt
Re:Useful Perl one-liners (2013) by pre_action on Tuesday November 29, 2016 @06:38PM (#13067194)
The 'e' character is seen as an argument to the '-i' switch, meaning this command line will yield `Can't open perl script "s/foo/bar/gi": No such file or directory`
Re:Useful Perl one-liners (2013) by JadeNB on Tuesday November 29, 2016 @07:00PM (#13067311)
Sigh; I am not making much of a show of my Perl knowledge today. (I messed up a Perl find-alike elsethread.) Thanks for setting me straight.