my $kill=0; # flag to stop the script if input is invalid (or --help is used) my @errmsg; # error message descriptions