-#!/usr/bin/perl
-
use strict;
-#use warnings;
+use warnings;
use Test::More;
BEGIN {
- plan skip_all => "Perl 5.10 required" unless eval { require 5.010; 1 };
- plan tests => 6;
+ plan skip_all => 'Perl 5.010 is required' unless "$]" >= '5.010';
+ plan tests => 5;
}
-
-BEGIN { use_ok 'Try::Tiny' }
+use Try::Tiny;
use 5.010;
+no if "$]" >= 5.017011, warnings => 'experimental::smartmatch';
my ( $foo, $bar, $other );