in reply to Nested LOOP in HTML::Template
to be this:push @outer, { 'INNER' => @inner };
otherwise you are setting the value of the INNER key to a scalar - the size of the @inner array.push @outer, { 'INNER' => \@inner };
You'll also want to declare the @inner inside the while() loop, otherwise you'll find that each INNER's value holds the same data.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Nested LOOP in HTML::Template
by nedals (Deacon) on May 10, 2005 at 22:34 UTC |