7 plan skip_all => 'Perl 5.010 is required' unless "$]" >= '5.010';
14 no if "$]" >= 5.017011, warnings => 'experimental::smartmatch';
16 my ( $foo, $bar, $other );
26 when (/bar/) { $bar++ };
27 when (/foo/) { $foo++ };
31 is( $_, "magic", '$_ not clobbered' );
33 ok( !$bar, "bar didn't match" );
34 ok( $foo, "foo matched" );
35 ok( !$other, "fallback didn't match" );