To install CBOR::XS, simply copy and paste either of the commands in to your terminal
cpanm
cpanm CBOR::XS
CPAN shell
perl -MCPAN -e shell
install CBOR::XS
For more information on module installation please visit the detailed CPAN module installation guide.