7 plan skip_all => 'Perl 5.010 is required' unless "$]" >= '5.010';
8 plan skip_all => 'Tests skipped on perl 5.27.7+, pending resolution of smartmatch changes' if "$]" >= '5.027007';
15 no if "$]" >= 5.017011, warnings => 'experimental::smartmatch';
17 my ( $foo, $bar, $other );
27 when (/bar/) { $bar++ };
28 when (/foo/) { $foo++ };
32 is( $_, "magic", '$_ not clobbered' );
34 ok( !$bar, "bar didn't match" );
35 ok( $foo, "foo matched" );
36 ok( !$other, "fallback didn't match" );