[Israel.pm] Fwd: CPAN Upload: J/JV/JV/Getopt-Long-2.35_01.tar .gz

Levenglick Dov-RM07994 Dov at freescale.com
Tue Mar 21 01:01:05 PST 2006

What can I say; an innocent feature requested by a friend is now a part of the release. You got to love open source :)
After the issue died in this mailing list, it was also discussed by me and Johan over the mail, the following quote being the last I heard from him on the subject:

I think that it should be the same as parsing the real @ARGV. If you leave these in @ARGV do so here.

>>Johan Vromans <jvromans at squirrel.nl> wrote:
>>    [Quoting Dov Levenglick, on March 6 2006, 03:11, in "Re: Module >>submissio"]
>>    > i am not sure that i understand the question. this is not supossed >>to effect @ARGV at all because of the closure.
>>    > what am i missing?
>>    # Assuming foo and bar are valid options:
>>    local(@ARGV) = qw(--foo --bar=blech zilch);
>>    Getopt::Long::GetOptions;
>>    # @ARGV now contains qw(zilch)
>>    What should be done with this? Ignore? Error?
>>    -- Johan

Best Regards,
Dov Levenglick
DSP SoC System and Applications Engineer,
Network and Computing Systems Group
Freescale Semiconductor Israel
Tel. +972-9-952-2804
The information contained in this email is classified as:
[ ] Freescale General Business Information
[ ] Freescale Internal Use Only
[ ] Freescale Confidential Propriety
[x] Personal Memorandum

-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On Behalf Of Gabor Szabo
Sent: Tuesday, March 21, 2006 9:43 AM
To: Perl in Israel
Subject: [Israel.pm] Fwd: CPAN Upload: J/JV/JV/Getopt-Long-2.35_01.tar.gz

As this was discussed here earlier
you might be interested in the new experimental version of Getopt::Long
See details below.


---------- Forwarded message ----------
From: Johan Vromans <jvromans at squirrel.nl>
Date: Mar 20, 2006 5:06 PM
Subject: CPAN Upload: J/JV/JV/Getopt-Long-2.35_01.tar.gz
To: Johan Vromans <jvromans at squirrel.nl>

The uploaded file


has entered CPAN as

  file: $CPAN/authors/id/J/JV/JV/Getopt-Long-2.35_01.tar.gz
  size: 38590 bytes
   md5: f63f951c5c7496163ddb83620dc16d82

Changes in version 2.36

**************** WARNING -- EXPERIMENTAL CODE AHEAD ****************

* Parsing options from an arbitrary array

  The entry point GetOptionsFromArray (exported on demand) can be used
  to parse command line options that are not passed in via @ARGV, but
  using an arbitrary array.

    use Getopt::Long qw(GetOptionsFromArray);
    $ret = GetOptionsFromArray(\@myopts, ...);

* Parsing options from an arbitrary string

  The entry point GetOptionsFromString (exported on demand) can be
  used to parse command line options that are not passed in via @ARGV,
  but using an arbitrary string.

    use Getopt::Long qw(GetOptionsFromString);
    $ret = GetOptionsFromString($optstring, ...);

  Note that upon completion, no arguments may remain in the string.
  If arguments may remain, call it in list context:

    ($ret, $args) = GetOptionsFromString($optstring, ...);

  @$args will have the remaining arguments.

**************** END EXPERIMENTAL CODE ****************

-- Johan

Perl mailing list
Perl at perl.org.il

More information about the Perl mailing list