Subject: Getopt::Long version 2.1 available on CPAN
From: [email-masked] (Johan Vromans)
Date: 2 Feb 1996 21:23:55 GMT
Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc

Version 2.1 of module Getopt::Long is now available via CPAN. It
should soon appear in directory authors/Johan_Vromans as file
GetoptLong-2.1.tar.gz.

This kit contains:

  Getoptions.pm  -- version 2.1 of Getopt::Long (subroutine GetOptions)
  newgetopt.pl   -- version 1.15 of newgetopt.pl (subroutine NGetOpt)
  Makefile.PL    -- Makefile for installation

This new version of Getopt::Long is now a decent Perl 5 module. 
The "old" newgetopt.pl is now a mere wrapper around Getopt::Long.
The documentation has been extensively reworked and enhanced.
Both Getopt::Long and NGetopt are fully upward compatible with the
1.14 versions.

New features in this version
----------------------------

* References to the option variables can be put in the option specs.
  Now you can say

    &GetOptions ('foo', \$foo, 'bar=s', \@bar)

  and much more. If you leave out the ref, it is good old `$opt_foo'
  time again.

* You can pass a REF CODE (e.g. \&my_sub). This subroutine will be
  called to handle setting of the option. 

* You can specify a REF CODE to be used for non-option call-back
  (specified with '<>'). This call-back routine is called for
  non-options (e.g. filenames).

-- 
------------------------------------------------------------------------------
Johan Vromans                                             [email-masked]
Squirrel Design & Consultancy                         Boskoop, the Netherlands
http://www.xs4all.nl/~jvromans                   http://www.xxlink.nl/squirrel
PGP key: finger [email-masked] (Key ID = C9A6FF75)
         Key fingerprint =  7C F8 BD 5C 25 7F 47 A6  CB 87 32 0B E3 50 EF 04 
------------------------ "Arms are made for hugging" -------------------------