in reply to Solved- Getopt::Long- Trying to specify "prefix" configuration option produces error

Just hilarious😂!

Well got impatient & could not wait for a clue, so looked in /usr/local/lib/perl5/5.36/Getopt/Long.pm, there saw "prefix="(💡) ...

1335 # Getopt::Long Configuration. 1336 sub Configure (@) { ... 1423 elsif ( $try =~ /^prefix=(.+)$/ && $action ) { 1424 $genprefix = $1; 1425 # Turn into regexp. Needs to be parenthesized! 1426 $genprefix = "(" . quotemeta($genprefix) . ")"; ...

... So I had failed to use = as a option-value joiner that the doc says nothing about (all it has about configuration: This subroutine takes a list of quoted strings, each specifying a configuration option to be enabled). Obviously🙄

  • Comment on Solved- Re: Getopt::Long- Trying to specify "prefix" configuration option produces error
  • Select or Download Code

Replies are listed 'Best First'.
Re: Solved- Re: Getopt::Long- Trying to specify "prefix" configuration option produces error
by talexb (Chancellor) on Feb 25, 2024 at 12:52 UTC
      Well got impatient & ..

    .. had a look and solved your own problem, proving once again the value of open source software. Got a problem? Documentation unclear? Have a look in the source code.

    Great job!

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.