# New Ticket Created by  Aaron Sherman 
# Please include the string:  [perl #128492]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128492 >


So, we already know from another bug that <$0> fails due to late binding of
$/[0], but accounting for that, by using a null {}, I'm still getting this
error:

$ perl6 -v
This is Rakudo version 2016.04 built on MoarVM version 2016.04
implementing Perl 6.c.
$ perl6 -e 'say "yes" if "aba" ~~ /("a"*) "b" {} <$0>/'
yes
$ perl6 -e 'say "yes" if "b" ~~ /("a"*) "b" {} <$0>/'
===SORRY!=== Error while compiling /home/urak/EVAL_0
Null regex not allowed
at /home/urak/EVAL_0:1
------> anon regex { }

The first command shows the rev of Perl6 I'm using (under docker from
mj41/perl6-star, as it turns out), the second shows the correct output and
the third, where I'm matching an empty $0, fails with a very cryptic error
that doesn't tell me anything about my code (even in a stand-alone program,
the stacktrace does not include my code).


--
Aaron Sherman, M.:
P: 617-440-4332 Google Talk, Email and Google Plus: a...@ajs.com
Toolsmith, developer, gamer and life-long student.

Reply via email to