Hi..many thanks for the reply,
I couldn't understand the main part of the script, the while loop. However, when I exscuted the script I got this message:
Global symbol "$sum_of" requires explicit package name at SortSum.Pl line 22.
Execution of SortSum.Pl aborted due to compilation errors
How can this be fixed? and if possible can you explain the script to me so I can learn?
thanks