Help for this page

Select Code to Download


  1. or download this
    $VAR1 = [
              'test.xls',
              'test-2.xls',
              'test-3.xls'
            ];
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
            /\.xls$/
            or die ("Invalid format for option expected -p '*.xls'\n");
    =cut
    
  3. or download this
    This is the number of @ARGV arguments before the process 4
    f
    Invalid format for option expected -f '*.xls'
    Invalid commmand line options.
    usage: long.pl -f file(s).xls -p file.csv
    
  4. or download this
    Getopt::Long::GetOptions(
        'f=s{1,}' => sub {
    ...
        }
        )
        or usage("Invalid commmand line options.");