Ok the above is what will be sent via a form. Only I wont know how many will be sent each time. I need to be able to run code for each one of them. I know this is a really simple problem and I should probably just walk away and get some rest but I want to finish this darn thing up. so can anyone help me on this? Thanks

Ok I understand how to get it in scalar context but what I cant seem to work out is how to know which I am using. What I want to say is:

foreach record in the array @to then we do something.

However, how do I get each record out of the array without knowing what their scalar context is. I just need it to go through each one and do something so could I do a foreach statement on the repopulated @to array?