www.perl.com
Perl Programming
Pipes
  • Pipes
    • Pipes redirect input from or output to another process
    • Just like shell redirection, pipes act like normal files

        # Use another process as input
        open INPUT, "ps aux |" or die "Can't open input command: $!";

        # Print labels to printer instead of to a file
        open LABELS, "| lpr" or die "Can't open lpr command: $!";
      

      
Previous http://stuff.mit.edu/iap/perl/