in reply to passing array from form to form

<input type="hidden" name=class value =@class>
That's broken. You want this instead:
print hidden('class', @class);

-- Randal L. Schwartz, Perl hacker