Skip to content

Instantly share code, notes, and snippets.

@squarism
Created December 17, 2016 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squarism/72d2fdafe3b0eb742f3c10328a0a6d52 to your computer and use it in GitHub Desktop.
Save squarism/72d2fdafe3b0eb742f3c10328a0a6d52 to your computer and use it in GitHub Desktop.
The problem with perl pie

Perl One Liners Bring Way Too Much To the Table

I've always used perl -pie for inline text replacement. Because I got used to it, I used it a lot. Because I used it a lot, I used it a lot. Because I used it a lot, a lot I love it. I shun sed. But what is this bringing with it? An entire language?

Get:4 http://ftp.us.debian.org/debian/ jessie/main powerline armhf 1.2-2 [36.9 kB]
Fetched 259 kB in 1s (250 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
  LANGUAGE = (unset),
  LC_ALL = (unset),
  LC_CTYPE = "en_US.UTF-8",
  LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Installing powerline fonts runs perl? Perl needs a locale setup? What the hell?

What if we had a binary that did the same thing that perl pie does?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment