Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.49 kb
use v6;
use Test;
plan 3;
# should be: L<S05/Bracket rationalization/"An B<explicit> reduction using the C<make> function">
# L<S05/Bracket rationalization/reduction using the>
# L<S05/Match objects/"Fortunately, when you just want to return a different">
"blah foo blah" ~~ / foo # Match 'foo'
{ make 'bar' } # But pretend we matched 'bar'
/;
ok($/, 'matched');
is($(), 'bar');
is $/.ast, 'bar', '$/.ast';
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.