Path: usenet.cis.ufl.edu!usenet.eel.ufl.edu!psgrain!nntp.teleport.com!usenet
From:
[email protected] (Johan Vromans)
Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc
Subject: Getopt::Long version 2.1 available on CPAN
Followup-To: comp.lang.perl.misc
Date: 2 Feb 1996 21:23:55 GMT
Organization: Squirrel Design & Consultancy
Lines: 43
Approved:
[email protected] (comp.lang.perl.announce)
Message-ID: <
[email protected]>
NNTP-Posting-Host: julie.teleport.com
X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content.
Xref: usenet.cis.ufl.edu comp.lang.perl.announce:244 comp.lang.perl.misc:19462
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 protected]
Squirrel Design & Consultancy Boskoop, the Netherlands
http://www.xs4all.nl/~jvromans http://www.xxlink.nl/squirrel
PGP key: finger
[email protected] (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" -------------------------