On 12/26/05, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Fri, Dec 23, 2005 at 02:09:19PM +0000, Luke Palmer wrote: > > "x" ~~ / [ [ (x) ]* ]* / > > As I understand things, $/[0][0] would be "x".
Hmm, that seems wrong. Consider: "xxxyxxyxy" ~~ / [ [ (x) ]* (y) ]* / I argue that by the structure of that rule, you should be able to tell which xs go with which y. Currently, the match object comes out: [0] => [ [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] ], [1] => [ [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] ] Obscuring that information. Whereas, with "deeper" nesting semantics, you get: [0] => [ [ [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] ], [ [EMAIL PROTECTED], [EMAIL PROTECTED] ], [ [EMAIL PROTECTED] ] ] [1] => [ [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] ] Making it easy to tell which xs go with which y ($/[0][1] corresponds to $/[1][1], etc.). Is there a counterargument that I'm not seeing? Luke