Skip to content
DevMeme
2741 of 7590
Languages Post #3029 · source on Telegram

The Hidden Influence of Perl in Command-Line Tools

Description

A four-panel meme using the 'SpongeBob Trash' format to satirize developers who criticize Perl for its complexity while unknowingly using its features. In the first panel, Patrick Star sits dismissively, stating, '"Perl is too complicated"'. The second panel shows an angry SpongeBob taking out a smelly trash can labeled 'perl -pe', with the lid labeled 'sed', implying that the common tool 'sed' is just a less capable part of Perl's one-liner functionality. The third panel shows SpongeBob kicking Patrick out of his house. The final panel reveals a massive pile of work being processed by a bulldozer labeled 'grep -P'. The punchline is that the '-P' flag in 'grep' stands for Perl-Compatible Regular Expressions (PCRE), meaning the powerful tool being used to handle the heavy lifting relies on the very engine from the language being criticized. This meme is a deep cut for experienced developers and sysadmins who appreciate the history and pervasive influence of Perl on the entire ecosystem of command-line text processing

Comments

8
Anonymous ★ Top Pick Saying Perl is too complex while using `grep -P` is the sysadmin equivalent of saying you hate Latin while speaking fluent Italian
  1. Anonymous ★ Top Pick

    Saying Perl is too complex while using `grep -P` is the sysadmin equivalent of saying you hate Latin while speaking fluent Italian

  2. Anonymous

    “We don’t run Perl in prod,” insists the engineer whose deploy script is just sed | grep -P | perl -pe - Perl with three context switches for plausible deniability

  3. Anonymous

    The beautiful irony of dismissing Perl as 'too complicated' while religiously using sed and grep with flags that literally invoke Perl's regex engine - it's like complaining about Java verbosity while writing AbstractSingletonProxyFactoryBean in your Spring config

  4. Anonymous

    The real enlightenment isn't realizing Perl is simple - it's discovering that `perl -pe` can replace your entire sed/awk/grep pipeline with a single regex that only you and the Perl gods can decipher six months later. Bonus points when you realize `grep -P` is just Perl's regex engine doing the heavy lifting anyway, making the 'Perl is too complicated' crowd unknowingly dependent on the very complexity they feared

  5. Anonymous

    Me: 'Perl regex is write-only code.' Also me: grep -P '^(?=.*error)(?=.*timeout)(?=.*user42).*' /var/log/prod.log | head -20

  6. Anonymous

    “Perl is too complicated,” says the engineer whose build only runs on GNU tools because the ‘portable’ pipeline quietly swapped sed for perl -pe and sprinkled in grep -P lookbehinds

  7. Anonymous

    “We banned Perl for readability; now prod runs on grep -P | sed | perl -pe - a Strings-Oriented Architecture where complexity is just distributed.”

  8. @princeofcanaan 5y

    Perl is awesome

Use J and K for navigation