diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-22 04:37:21 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-22 04:37:21 +0000 |
commit | 9e01bed8b6dd351933b88ffcf539432d47e152bc (patch) | |
tree | d7c80ab301773cfd15e26641e7476766eeece2c4 /lib/Getopt/Long | |
parent | 1426a145710dcf31e1623041f231376973b4606b (diff) | |
download | perl-9e01bed8b6dd351933b88ffcf539432d47e152bc.tar.gz |
Upgrade to Getopt::Long 2.33_03.
p4raw-id: //depot/perl@21303
Diffstat (limited to 'lib/Getopt/Long')
-rw-r--r-- | lib/Getopt/Long/CHANGES | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/lib/Getopt/Long/CHANGES b/lib/Getopt/Long/CHANGES index 5c7ef4a9ed..a06357d222 100644 --- a/lib/Getopt/Long/CHANGES +++ b/lib/Getopt/Long/CHANGES @@ -1,3 +1,25 @@ +Changes in version 2.34 +----------------------- + +* Auto-vivification of array and hash refs + + If an option is specified to require an array or hash ref, and a + scalar reference is passed, this is auto-vivified to array or hash + ref. + + Example: + + @ARGV = qw(--foo=xx); + GetOptions("foo=s@", \$var); + # Now $var->[0] eq "xx" + +* Auto-supplied verbose and help options are no longer taken into + account when determining option ambiguity. This eliminates the + common problem that you suddenly get an ambiguous option warning + when you have an option "verbose" and run your program with "-v". + +* Cosmetic changes in some error messages. + Changes in version 2.33 ----------------------- @@ -78,9 +100,9 @@ Changes in version 2.31 ----------------------- * Fix a bug where calling the configure method on a -Getopt::Long::Parser object would bail out with -Undefined subroutine &Getopt::Long::Parser::Configure called at -Getopt/Long.pm line 186. + Getopt::Long::Parser object would bail out with + Undefined subroutine &Getopt::Long::Parser::Configure called at + Getopt/Long.pm line 186. Changes in version 2.30 ----------------------- |