Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print WRITEHANDLE "Test!\n";
    close WRITEHANDLE;
    wait;
    
  2. or download this
    open IN, "<&", $ARGV[0] or die $!;
    binmode IN;
    ...
        print "line $_";
    }
    close IN;
    
  3. or download this
    open IN, "<&", $ARGV[0] or die $!;
    binmode IN;
    my $s = <IN>;
    print "line: $s";
    close IN;
    
  4. or download this
    perl main.pl subcommand1.pl
    
  5. or download this
    perl main.pl subcommand2.pl
    
  6. or download this
    cat subcommand1.pl | perl subcommand1.pl 0