Answering to the best of my knowledge.
On Sat, 7 Sep 2002, Jonathan Scott Duff wrote:
> Question #2:
>
> Why are we storing the hypothetical's sigil in the match object?
I think it's to differentiate the different namespaces (scalar, array,
hash) within the match object's hash. Personally, I don't like it, and
think that people should just not do:
/ $var := <foo> , @var := <bar>* /
Because it's dumb.
> Question #3:
>
> Related to question #2, if I didn't use hypotheticals, how would I
> access the Nth match of a repitition? For instance, in E5, there's an
> example that looks like this:
>
> rule file { ^ @adonises := <hunk>* $ }
>
> If I didn't have the hypothetical @adonises, how would I retrieve the
> 3rd hunk matched? Would I need to write it like so:
>
> rule file { ^ <hunks> $ }
> rule hunks :e { (<hunk>) }
No. I think you can do this:
/ <hunk>* / # maybe / (<hunk>)* /
$0{hunk}[3]
Luke