eliminate smartmatch warnings

Newer versions of Perl throw warnings related to Smartmatch being
considered “experimental”. Eliminated these warnings.