# $Id: newgetopt.pl,v 1.18 2001-09-21 15:34:59+02 jv Exp $
# This library is no longer being maintained, and is included for backward
# compatibility with Perl 4 programs which may require it.
# It is now just a wrapper around the Getopt::Long module.
#
# In particular, this should not be used as an example of modern Perl
# programming techniques.
#
# Suggested alternative: Getopt::Long
{ package newgetopt;
# Values for $order. See GNU getopt.c for details.
$REQUIRE_ORDER = 0;
$PERMUTE = 1;
$RETURN_IN_ORDER = 2;
# Handle POSIX compliancy.
if ( defined $ENV{"POSIXLY_CORRECT"} ) {
$option_start = "(--|-)";
$order = $REQUIRE_ORDER;
$bundling = 0;
$passthrough = 0;
}
else {
$option_start = "(--|-|\\+)";
$bundling = 0;
$passthrough = 0;
}
# Other configurable settings.
}
################ Subroutines ################
sub NGetOpt {
if defined $newgetopt::autoabbrev;
if defined $newgetopt::getopt_compat;
if defined $newgetopt::option_start;
if defined $newgetopt::ignorecase;
if defined $newgetopt::ignorecase;
if defined $newgetopt::passthrough;
}
################ Package return ################
1;
################ End of newgetopt.pl ################