Help for this page

Select Code to Download


  1. or download this
    % ./myprog foo bar blat
    
  2. or download this
    #!/usr/bin/perl -s
    
    print "value of -x: $x\n";
    print "value of -name: $name\n";
    
  3. or download this
    % ./myprog -x -name=Jeff
    value of -x: 1
    value of -name: Jeff
    
  4. or download this
    while (<>) {
      # $ARGV is the filename
    ...
        # or
        # close ARGV if eof;
    }