perl - RicoJia/notes GitHub Wiki

Basics

  1. Why perl:

    • text manipulation.
    • High level script language, can be embedded in web servers.
    • online Perl IDE, or just perl something.pl
    • ls | perl -e 'while(<>){print("$_ lol\n");}'
  2. one-liner

    # while(<>) will automatically pop all args, and the variable is stored in $_
    ls | perl -e 'while(<>){print("$_ lol\n");}'
⚠️ **GitHub.com Fallback** ⚠️