P is for Practical | |
PerlMonks |
Re: CGI Coding Problem on Subloopby japhy (Canon) |
on Jun 17, 2006 at 21:00 UTC ( [id://556020]=note: print w/replies, xml ) | Need Help?? |
The problem is that @subloop is the same array each time. Instead of @subloop = ();, use my @subloop;. Either that, or change $items{_ITEMS} = \@subloop; to $items{_ITEMS} = [@subloop];.
In Section
Seekers of Perl Wisdom
|
|