# Id: newgetopt.pl,v 1.18 2001/09/21 13:34:59 jv # 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"} ) { $autoabbrev = 0; # no automatic abbrev of options (???) $getopt_compat = 0; # disallow '+' to start options $option_start = "(--|-)"; $order = $REQUIRE_ORDER; $bundling = 0; $passthrough = 0; } else { $autoabbrev = 1; # automatic abbrev of options $getopt_compat = 1; # allow '+' to start options $option_start = "(--|-|\\+)"; $order = $PERMUTE; $bundling = 0; $passthrough = 0; } # Other configurable settings. $debug = 0; # for debugging $ignorecase = 1; # ignore case when matching options $argv_end = "--"; # don't change this! } use Getopt::Long; ################ Subroutines ################ sub NGetOpt { $Getopt::Long::debug = $newgetopt::debug if defined $newgetopt::debug; $Getopt::Long::autoabbrev = $newgetopt::autoabbrev if defined $newgetopt::autoabbrev; $Getopt::Long::getopt_compat = $newgetopt::getopt_compat if defined $newgetopt::getopt_compat; $Getopt::Long::option_start = $newgetopt::option_start if defined $newgetopt::option_start; $Getopt::Long::order = $newgetopt::order if defined $newgetopt::order; $Getopt::Long::bundling = $newgetopt::bundling if defined $newgetopt::bundling; $Getopt::Long::ignorecase = $newgetopt::ignorecase if defined $newgetopt::ignorecase; $Getopt::Long::ignorecase = $newgetopt::ignorecase if defined $newgetopt::ignorecase; $Getopt::Long::passthrough = $newgetopt::passthrough if defined $newgetopt::passthrough; &GetOptions; } ################ Package return ################ 1; ################ End of newgetopt.pl ################
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
App | Folder | 0755 |
|
|
Archive | Folder | 0755 |
|
|
Authen | Folder | 0755 |
|
|
B | Folder | 0755 |
|
|
Bundle | Folder | 0755 |
|
|
Business | Folder | 0755 |
|
|
CGI | Folder | 0755 |
|
|
CPAN | Folder | 0755 |
|
|
CPANPLUS | Folder | 0755 |
|
|
Carp | Folder | 0755 |
|
|
DBIx | Folder | 0755 |
|
|
Data | Folder | 0755 |
|
|
Date | Folder | 0755 |
|
|
Devel | Folder | 0755 |
|
|
Digest | Folder | 0755 |
|
|
Encode | Folder | 0755 |
|
|
Error | Folder | 0755 |
|
|
Exporter | Folder | 0755 |
|
|
ExtUtils | Folder | 0755 |
|
|
File | Folder | 0755 |
|
|
Getopt | Folder | 0755 |
|
|
Git | Folder | 0755 |
|
|
HTML | Folder | 0755 |
|
|
HTTP | Folder | 0755 |
|
|
IO | Folder | 0755 |
|
|
IPC | Folder | 0755 |
|
|
JSON | Folder | 0755 |
|
|
LWP | Folder | 0755 |
|
|
Locale | Folder | 0755 |
|
|
Log | Folder | 0755 |
|
|
Folder | 0755 |
|
||
Module | Folder | 0755 |
|
|
Mozilla | Folder | 0755 |
|
|
Net | Folder | 0755 |
|
|
POD2 | Folder | 0755 |
|
|
Params | Folder | 0755 |
|
|
Parse | Folder | 0755 |
|
|
Perl | Folder | 0755 |
|
|
Pod | Folder | 0755 |
|
|
RPC | Folder | 0755 |
|
|
TAP | Folder | 0755 |
|
|
Term | Folder | 0755 |
|
|
Test | Folder | 0755 |
|
|
Text | Folder | 0755 |
|
|
Thread | Folder | 0755 |
|
|
Time | Folder | 0755 |
|
|
Try | Folder | 0755 |
|
|
Types | Folder | 0755 |
|
|
Version | Folder | 0755 |
|
|
WWW | Folder | 0755 |
|
|
auto | Folder | 0755 |
|
|
autodie | Folder | 0755 |
|
|
common | Folder | 0755 |
|
|
inc | Folder | 0755 |
|
|
lib | Folder | 0755 |
|
|
local | Folder | 0755 |
|
|
CGI.pm | File | 255.24 KB | 0644 |
|
CPANPLUS.pm | File | 7.05 KB | 0644 |
|
Carp.pm | File | 19.93 KB | 0644 |
|
Digest.pm | File | 10.35 KB | 0644 |
|
Env.pm | File | 5.39 KB | 0644 |
|
Error.pm | File | 24.27 KB | 0644 |
|
Expect.pm | File | 53.44 KB | 0644 |
|
Expect.pod | File | 42.71 KB | 0644 |
|
Exporter.pm | File | 18.31 KB | 0644 |
|
Fatal.pm | File | 45.16 KB | 0644 |
|
Git.pm | File | 42.55 KB | 0444 |
|
JSON.pm | File | 67.04 KB | 0644 |
|
Readonly.pm | File | 21.94 KB | 0644 |
|
autodie.pm | File | 11.83 KB | 0644 |
|
constant.pm | File | 13.04 KB | 0644 |
|
newgetopt.pl | File | 2.15 KB | 0644 |
|
parent.pm | File | 2.83 KB | 0644 |
|
perldoc.pod | File | 8.25 KB | 0644 |
|