Help for this page

Select Code to Download


  1. or download this
    use Getopt::Long qw(GetOptions);
    my $arg1;
    GetOptions( 'arg1=s' => \$arg1);
    
  2. or download this
    use Getopt::Long qw(GetOptions);
    my arg1;
    ...
    GetOptions($opt);   #doesn't work  
    GetOptions(@opt);   #doesn't work
    GetOptions(%opt);   #doesn't work