Fixing the Perl Module “only available with the XS version” Error

When trying to install or upgrade a perl module using cpan, you may get an error stating that the module you are trying to install “is only available with the XS version”