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

Gabor Szabo szabgab at gmail.com
Mon Mar 20 23:42:54 PST 2006


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

Gabor

---------- 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

    Getopt-Long-2.35_01.tar.gz

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




More information about the Perl mailing list