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


This is Rakudo version 2017.08-11-g6cec6b7 built on MoarVM version
2017.08.1-19-g151a256
implementing Perl 6.c.

Rakudo confuses <?after ^> with <?after $> in a regex, and the same with
^^ and $$.

The following four test cases should all pass (barring a thinko on my
part), but instead they all fail:

#!/usr/bin/env perl6
use Test;

given "abc\ndef" {
    is S/ <?after ^> /X/, "Xabc\ndef", '^ in <?after>';
    is S/ <?after $> /X/, "abc\ndefX", '$ in <?after>';
    is S:g/ <?after ^^> /X/, "Xabc\nXdef", '^^ in <?after>';
    is S:g/ <?after $$> /X/, "abcX\ndefX", '^^ in <?after>';
}
done-testing

Kudos go to _cronus on #perl6 for asking about a weird behavior, which
led to the discovery of this bug.

Cheers,
Moritz

 
Moritz Lenz
Design & Architecture (CDA) 
noris network
Thomas-Mann-Straße 16-20
90471 Nürnberg
Deutschland
Tel +49 911 9352 1517
Fax +49 911 9352 100

moritz.l...@noris.de
https://www.noris.de - Mehr Leistung als Standard
Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel
Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689
 
 
 
 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to