in reply to Subroutine help
1st: adds up all the numbers in list, and returns total
Use the sum function from the List::Util module.
2nd is returns the highest number in the list
Use the max function from the List::Util module.