develooper Front page | perl.perl5.porters | Postings from December 2009

[perl #59792]

From:
Abigail
Date:
December 8, 2009 18:08
Subject:
[perl #59792]
Message ID:
20091209020830.GA19460@almanda

Bug #59792 mentions that:

    my $re = '(?<U><(?&U)?>)';
    "<<>>" =~ /(?|$re)/;

leads to a regexp compile error. This seems to be fixed in 5.10.1 and
5.11.2. However, changing the regexp slightly results in the original error:

    my $re = '(?<U><(?&U)?>)';
    "<<>>" =~ /(?||$re)/;

    Reference to nonexistent group in regex; marked by <-- HERE in m/(?||(?<U><(?&U) <-- HERE ?>))/


Both
    "<<>>" =~ /(?|$re|)/
and
    "<<>>" =~ /(?||$re|)/


seem to be fine.



Abigail



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About