Help for this page

Select Code to Download


  1. or download this
    (nothing provided)
    prefix=-
    ...
    getopt_compat
    no_posix_default
    no_getopt_compat
    
  2. or download this
    prefix=-
    long_prefix_pattern=--
    prefix=-, long_prefix_pattern=--
    
  3. or download this
    perl5.36 getopt-test-combination.pl > out 2> err
    grep '^ok.+input:.+--o' out
    
  4. or download this
    grep --color=always '^not ok.+input: -o --o.+parsed: [0-9]+.+(long_)?p
    +refix' out | head -n 3
    not ok 6 - input: -o --o; parsed: 1; conf: ( prefix=- )
    not ok 9 - input: -o --o; parsed: 1; conf: ( long_prefix_pattern=-- )
    not ok 30 - input: -o --o; parsed: 1; conf: ( prefix=-, long_prefix_pa
    +ttern=-- )
    ...
    
  5. or download this
    # getopt-test-combination.pl
    
    ...
       return $option;
    }