template/perl.pl Added checkMandatoryOptions handling by checking the Getopt configuration.