Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my ( $file, $name );
    GetOptions( file => \$file, name => \$name );
    print "File: $file\nName: $name\n";
    
  2. or download this
    perl test_getopt.pl -file -name
    
  3. or download this
    File: 1
    Name: 1