7 plan skip_all => 'Perl 5.010 is required' unless "$]" >= '5.010';
8 plan skip_all => 'Tests skipped on perl 5.27.{7,8,9} when smartmatch behaviour changed' if "$]" >= '5.027007' and "$]" < '5.027010';
9 plan skip_all => 'given/when have been removed in perl 5.42' if "$]" >= '5.041003';
16 no if "$]" >= 5.017011, warnings => 'experimental::smartmatch';
18 my ( $foo, $bar, $other );
28 when (/bar/) { $bar++ };
29 when (/foo/) { $foo++ };
33 is( $_, "magic", '$_ not clobbered' );
35 ok( !$bar, "bar didn't match" );
36 ok( $foo, "foo matched" );
37 ok( !$other, "fallback didn't match" );