Re: [perl #125391] Wrong order with %% $=.*

2015-06-12 Thread Larry Wall
Since the sort is stable, I believe it suffices simply to sort on the .to instead of the .from. Larry

Re: [perl #125391] Wrong order with %% $=.*

2015-06-11 Thread Patrick R. Michaud
On Thu, Jun 11, 2015 at 02:53:15PM -0700, Alex Jakimenko wrote: > say grammar Gram { regex TOP { ('XX')+ %% $=<[a..z]>* }; > }.parse('XX'); > > Output: > 「XX」 > 0 => 「XX」 > 0 => 「XX」 > delim => 「」 > 0 => 「XX」 > delim => 「」 > delim => 「」 > > The order is wrong. I'm not entirely cer

[perl #125391] Wrong order with %% $=.*

2015-06-11 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #125391] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125391 > Code: say grammar Gram { regex TOP { ('XX')+ %% $=<[a..z]>* }; }.parse('XX'); Outp