See also User defined subroutines to handle options
In reply to Re: Using Getopt::Long by toolic in thread Using getopt::Long by madM