Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 3.145.56.150
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
perl-Getopt-Long-2.40 /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
README
322
B
-rw-r--r--
parsetime.pl
1.19
KB
-rw-r--r--
skel1.pl
1.97
KB
-rw-r--r--
skel2.pl
2.46
KB
-rw-r--r--
skel3.pl
2.52
KB
-rw-r--r--
skel4.pl
2.89
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : skel4.pl
#!/usr/bin/perl # Skeleton for an application using Getopt::Long. # Author : Johan Vromans # Created On : Tue Sep 15 15:59:04 1992 # Last Modified By: Johan Vromans # Last Modified On: Fri Jul 9 14:31:06 2010 # Update Count : 83 # Status : Unknown, Use with caution! ################ Common stuff ################ use strict; use warnings; ################ Setup ################ # Process command line options, config files, and such. my $options = app_setup(); ################ Presets ################ $options->{trace} = 1 if $options->{debug} || $options->{test}; ################ Activate ################ main($options); ################ The Process ################ sub main { my ($options) = @_; use Data::Dumper; print Dumper($options); } ################ Options and Configuration ################ use Getopt::Long 2.13; # Package name. my $my_package; # Program name and version. my ($my_name, $my_version); sub app_setup { my $help = 0; # handled locally my $ident = 0; # handled locally # Package name. $my_package = 'Sciurix'; # Program name and version. ($my_name, $my_version) = qw( MyProg 0.01 ); my $options = { verbose => 0, # verbose processing ### ADD OPTIONS HERE ### # Development options (not shown with -help). debug => 0, # debugging trace => 0, # trace (show process) test => 0, # test mode # Service. _package => $my_package, _name => $my_name, _version => $my_version, _stdin => \*STDIN, _stdout => \*STDOUT, _stderr => \*STDERR, _argv => [ @ARGV ], }; # Return defaults if no options to process. return $options unless @ARGV; # Sorry, layout is a bit ugly... if ( !GetOptions ($options, ### ADD OPTIONS HERE ### # Configuration handling. 'config=s' => sub { app_config($options, $_[0], $_[1]) }, # Standard options. 'ident' => \$ident, 'help|?' => \$help, 'verbose', 'trace', 'debug', ) ) { # GNU convention: message to STDERR upon failure. app_usage(\*STDERR, 2); } # GNU convention: message to STDOUT upon request. app_usage(\*STDOUT, 0) if $help; app_ident(\*STDOUT) if $ident; $options; } sub app_ident { my ($fh) = @_; print {$fh} ("This is $my_package [$my_name $my_version]\n"); } sub app_usage { my ($fh, $exit) = @_; app_ident($fh); print ${fh} <<EndOfUsage; Usage: $0 [options] [file ...] ### ADD OPTIONS HERE ### --config=CFG load options from config file --help this message --ident show identification --verbose verbose information EndOfUsage exit $exit if defined $exit; } sub app_config { my ($options, $optname, $config) = @_; die("$config: $!\n") unless -e $config; push(@{$options->{_config}}, $config); # Process config data, filling $options ... }
Close