in reply to CGI Coding Problem on Subloop

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];.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart