Thanks.. i'll use the push method to build the array.
I think i found a solution to what i want to do.. Using CGI::Ajax i think i can output this table with the form elements, and then only put items in the array when they enter data.
The query problem is that the Quantity can change on the Floor (Scrap) and Skid quantity will also change dynamically so i can't grab that data.. i have to rely on users to input that
I will post final outcome once i work out all of the little details..
It sounds like you might be a little confused about the flow of CGI.
Your perl script generates an HTML form, when submitted that form sends the data back to which ever script you want (by calling that script agian) which would then generate another HTML page and the email. So when processing the return from the script you will know the quantities and skids.