See the Custom Type Constraints section in the MouseX::Getopt docs for more info about how to use this module.
To install MouseX::Getopt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MouseX::Getopt
CPAN shell
perl -MCPAN -e shell install MouseX::Getopt
For more information on module installation, please visit the detailed CPAN module installation guide.