use warnings; use strict; use Getopt::Long; use File::Basename; ## Author: Svendsen Tech, Joakim Svendsen ## Mail: joakimbs using Google's mail service ## Created: 2008-07-25 ## Rewritten: 2011-12-27 # Declare options hash and parse command line parameters my %options; GetOptions( 'dryrun' => \$options{dryrun}, 'help' => \$options{help}, 'nonverbose' => \$options{nonverbose}, 'subst=s' => \$options{subst}, 'glob=s' => \$options{glob} ) or die "Unable to parse arguments: $!\n$^E"; # Print help if -h was supplied or the required arguments are missing if ($options{help} or !$options{subst} or !$options{glob}) { my $script_name = basename $0; print <