Further, you need to be using strict and warnings. Turning those pragmata on would have given you lots of information about why your code isn't working. You're passing an array to total(), but only shifting a single scalar ($all_info) out of it. You're then trying to split $total on spaces, but elements of the array are supposed to be numerical. This doesn't make much sense. I reccomend seeing the following before going any further.
In reply to Re: Sub routine processing issue, HELP!!!!!
by friedo
in thread Sub routine processing issue, HELP!!!!!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |