in reply to Sub routine processing issue, HELP!!!!!

Write some non-code English, describing what you think this code should do. Then, slowly convert that English, over a number of steps, into code and see if you get to where you are.

I think your main problem is that you're not understanding arrays and how they are passed in. Specifically, you pass an array to total(), but you seem to think it will be passed to total() as a space-delimited string.

Furthermore, I would strongly suggest using something like HTML::Template.

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

  • Comment on Re: Sub routine processing issue, HELP!!!!!