Help for this page

Select Code to Download


  1. or download this
    # This is cat.pl
    while(<>) {
      print;
    }
    
  2. or download this
    # This is ls.pl
    use strict;
    ...
    my @result=<OUTPUT>;
    close OUTPUT;
    print "RESULT:\n@result\n";
    
  3. or download this
    perl ls.pl
    
  4. or download this
    RESULT:
    first line
     second line