I think you should be using <{ }> rather than {}. If it was working before
then that was probably a bug :\. They are both succeeding because it's
essentially matching against an empty regex. the return value of <{ ... }>
is actually used for matching.
See: http://design.perl6.org/S05.html

It's not documented at http://docs.perl6.org/language/regexes yet
unfortunately.

LL


On Sat, Oct 31, 2015 at 4:48 PM, Andy Weidenbaum <
perl6-bugs-follo...@perl.org> wrote:

> # New Ticket Created by  Andy Weidenbaum
> # Please include the string:  [perl #126509]
> # in the subject line of all future correspondence about this issue.
> # <URL: https://rt.perl.org/Ticket/Display.html?id=126509 >
>
>
> Rakudo v6.b on Moar Linux x86_64
>
> When passing a variable of type Regex containing a closure, the Regex
> appears to be reset to C<.*>. See:
>
> https://gist.github.com/atweiden/ce8aa39e506ebb969898
>

Reply via email to