newgetopt.pl revision 7c478bd95313f5f23a4c958a745db2134aa03244
# newgetopt.pl -- new options parsing.
# Now just a wrapper around the Getopt::Long module.
# $Id: newgetopt.pl,v 1.17 1996-10-02 11:17:16+02 jv Exp $
{ 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 ################