Fix compatability with Perl < 5.18

Fixed by removing the need for no warnings 'experimental::smartmatch';