Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl -w
    use strict;
    ...
    my $opt_u = 0;
    getopt('u') || die "can't do getopt\n";
    print "username is $opt_u\n";
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
    getopt('u');
    
    print "username is $Getopt::Std::opt_u\n";