[perl #116182] [BUG] 's;' wrongly parsed as subroutine call in Rakudo

2014-10-15 Thread Christian Bartolomaeus via RT
I added two tests (for parsing s; and m;) to S02-names-vars/names.t with the following commit: https://github.com/perl6/roast/commit/9cafef7ce7

[perl #116182] [BUG] 's;' wrongly parsed as subroutine call in Rakudo

2014-10-14 Thread Christian Bartolomaeus via RT
As I understand this bug report, the problem was this: doy r: sub s () { given 9 { return 0 when $_ %% 3; 1 } }; say s; p6eval rakudo c8de2e: OUTPUT«0␤» As the subject says the s; was parsed as a subroutine call by Rakudo. Back in 2012 the bug could have been shown a bit shorter: $ perl6 -e

[perl #116182] [BUG] 's;' wrongly parsed as subroutine call in Rakudo

2014-01-16 Thread Will Coleda via RT
On Mon Mar 11 12:40:13 2013, jn...@jnthn.net wrote: On Sun Dec 23 14:29:06 2012, masak wrote: doy r: sub s () { given 9 { return 0 when $_ %% 3; 1 } }; say s p6eval rakudo c8de2e: OUTPUT«===SORRY!===␤Null regex not allowed [...] doy r: sub s () { given 9 { return 0 when $_ %% 3; 1 } };

[perl #116182] [BUG] 's;' wrongly parsed as subroutine call in Rakudo

2012-12-23 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #116182] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=116182 doy r: sub s () { given 9 { return 0 when $_ %% 3; 1 } }; say s p6eval rakudo