#!/usr/bin/perl use Getopt::Long (); my ($opt_debug, $opt_verb, $opt_help, $opt_pages) = (0) x 4; my $opt_color = ''; my @opt_file = (); #$opt = param('OPT'); $ok = Getopt::Long::GetOptions( 'debug!' => \$opt_debug, 'verbose+'=> \$opt_verb , 'help' => \$opt_help , 'pages=i' => \$opt_pages, 'color=s' => \$opt_color, 'file=s' => \@opt_file ); print "\t-debug = $opt_debug\n", "\t-verbose = $opt_verb\n", "\t-help = $opt_help\n", "\t-pages = $opt_pages\n", "\t-color = $opt_color\n", "\t-file = ", join(',',@opt_file),"\n"; Usage() if !$ok || $opt_help; #=============================================================================== sub Usage() { #=============================================================================== print <