parv has asked for the wisdom of the Perl Monks concerning the following question:
I was trying to set prefix option for Getopt::Long but that produces the error message as if that option is unknown or I am doing something wrong (what exactly?) ...
use v5.32; use warnings; use Getopt::Long; printf qq[Version: perl %s, Getopt::Long %s\n], $^V, $Getopt::Long::VERSION; #use Getopt::Long qw[:config debug prefix - ]; # # Only difference is time, compile or run, of error ... # # Getopt::Long: unknown or erroneous config parameter "prefix" # Getopt::Long::Configure( q[debug], q[prefix], q[-] ); __END__ Version: perl v5.36.3, Getopt::Long 2.52 Getopt::Long: unknown or erroneous config parameter "prefix"
... So how do I set the prefix string?
Got the same error with long_prefix_pattern configuration option. A search brings up issues with user options; did not see anything relevant to module configuration.
Linked to here on Mastodon.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Solved- Re: Getopt::Long- Trying to specify "prefix" configuration option produces error
by parv (Parson) on Feb 25, 2024 at 02:30 UTC | |
by talexb (Chancellor) on Feb 25, 2024 at 12:52 UTC |