Perl/1 liners

From s23
Jump to navigation Jump to search

Use perl on your command line


  • The “|�? (pipe) symbol takes the output from a command line command and makes it the standard input of your 1 line Perl program.
  • The diamond operator, <>, reads lines from standard input.
  • Access command line arguments using @ARGV.


perl -e 'for $i (0..255) {print "$i:&#$i;<br>\n";}' >allutf8.html


Add you own useful one liners[edit]