See the Custom Type Constraints section in the MouseX::Getopt docs for more info about how to use this module.