Re: Accessing values from a multiple subrule repeition

2004-02-04 Thread David Manura
Given this: SimpleExpression : term (AddOperator term )(s?) $item[1] relates to the first "term". $item[2] relates to the "(AddOperator term )(s?)". So, $item[2] is an arrayref of the last element of "AddOperator term" (i.e. "term"). As is, there's no way to grab the "AddOperator" values.

Re: Accessing values from a multiple subrule repeition

2004-02-04 Thread Ron D. Smith
On Wednesday, Feb 4, 2004 PerlDiscuss - Perl Newsgroups and mailing lists said: > > With the following code fragment, I realise I can access the array > containing the term values using the notation $item[2] as shown below: > > SimpleExpression : term (AddOperator )(s?) > { > my $SimpleExp