Help for this page
use Getopt::Long qw(GetOptions); Getopt::Long::Configure(qw(posix_default no_ignore_case)); ... unless exists $OPT{mandatory}; print "OK.\n";
$ testcmd.pl Option --mandatory not specified. ... $ testcmd.pl --nomandatory OK.