# New Ticket Created by Daniel Stojanov # Please include the string: [perl #92822] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=92822 >
Whitespaces are not properly escaped in $a\ .\ chop Note expected behaviour for $a\ ++ [21:07:46] <JimmyZ> perl6: my $a = "helloo"; $a = $a\ .\ chop; say $a; [21:07:50] <p6eval> niecza v6-153-g6cb84d6: OUTPUT«hello?» [21:07:51] <p6eval> ..rakudo ae5bea: OUTPUT«===SORRY!===?Confused at line 22, near "$a = $a\\ ."?» [21:07:51] <p6eval> ..pugs: OUTPUT«*** ? Unexpected "\\"? expecting "\187", ">>", "=", "^", operator name, qualified identifier, variable name, "...", "--", "++", "i", array subscript, hash subscript or code subscript? at /tmp/M89x3qR_2z line 1, column 29?» [21:08:19] <JimmyZ> std: my $a = "helloo"; $a = $a\ .\ chop; say $a; [21:08:21] <p6eval> std 37a0cdd: OUTPUT«ok 00:01 122m?» [21:08:23] <daniel-s> JimmyZ: is that a bug in pugs and rakudo? [21:08:47] <JimmyZ> I think it NYI in rakudo [21:09:09] <JimmyZ> not sure whether it's a bug or NYI [21:10:51] <JimmyZ> rakudo: my $a = 1; say $a\ ++; [21:10:53] <p6eval> rakudo ae5bea: OUTPUT«1?» [21:11:09] <JimmyZ> yes, it's a bug [21:12:01] <daniel-s> does somebody want to submit a bug report? [21:18:09] <daniel-s> perl6: my $a = "helloo"; $a = $a.chop; say $a; [21:18:17] <p6eval> pugs, rakudo ae5bea, niecza v6-153-g6cb84d6: OUTPUT«hello?» [21:23:17] <JimmyZ> perl6: my $a = "helloo"; $a = $a\ ~\ 'world'; say $a; # another one [21:23:21] <p6eval> niecza v6-153-g6cb84d6: OUTPUT«hellooworld» [21:23:22] <p6eval> ..pugs: OUTPUT«***  Unexpected "~\\" expecting "." at /tmp/7_pprT39nG line 1, column 28» [21:23:22] <p6eval> ..rakudo ae5bea: OUTPUT«===SORRY!===Confused at line 22, near "$a = $a\\ ~"» -- daniel-s
