# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #58424]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=58424 >


r30590:
$ ./perl6 -e 'regex a { b }; "b" ~~ a'
too few arguments passed (0) - 2 params expected
[...]

I've also added tests for this in t/spec/S05-metasyntax/regex.t.

(S05 is not entirely clear as to whether this should actually work.
IMHO, there's noreason for it not to. Storing anonymous regexes in
scalar variables already works.)

$ ./perl6 -e 'my $a = regex { b }; say "b" ~~ $a'
b

Reply via email to