Subject: | Using possessive lists doesn't save subrule results, causing mandatory result distillation |
Writing a regex of the form,
qr{
<program>
<rule: program>
<ladders>
<rule: ladders>
<[ladder]>++
<rule: ladder>
etc...
}xms;
with a possessive list quantifier (in the "ladders" rule) causes the rule containing the possessive quantifier to return its context string at the end.
From debugging, this seems to be because the "ladder" key, $MATCH{ladder}, in the "ladders" subrule is never created. If manual result distillation is attempted to force it to return the list, the value of $MATCH{ladder} is undefined.