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


This be Rakudo 9d9d416 on Parrot r40783.

$ cat > a
my $i;
die '' if /^ \#/;
++$i;
1;
$ perl6 a
Statement not terminated properly at line 4, near "1;\n"
in Main (src/gen_setting.pm:3460)

$ cat > b
my $i;
die '' if /\#/;
++$i;
$ perl6 b
perl6regex parse error: Quantifier follows nothing in regex at offset
24, found '+'
in Main (src/gen_setting.pm:3460)

<moritz_> \# is forbbiden, but the error message is LTA
<masak> waitwait, \# is forbidden? why?
<jnthn> .oO( LTA is a re-ordering of TLA )
<masak> LTA is also an excellent TLA.
<moritz_> because... forgot the reason. It's in the commit message
that modififed S05 accordingly
<moritz_> some parsing ambiguty
<moritz_> you have to write '#' now
<moritz_> or maybe it was a commit against STD.pm
<masak> S05:603: An unescaped C<#> now always introduces a comment.
<masak> that's all I've found so far.
<moritz_> $ cat foo.pl
<moritz_> / \# /
<moritz_> $ ./tryfile foo.pl
<masak> :)
<moritz_> ===SORRY!===
<moritz_> No unspace allowed in regex (for literal please quote with
single quotes) at foo.pl line 1:
<moritz_> ------> / \⏏# /
<masak> is that an STD.pm LTA error message?
<masak> I wasn't doing an unspace, I was backwhacking my '#'!
<diakopter> maybe some double-escaping is occuring
<masak> anyway,
* masak submits rakudobug

Reply via email to