G,
You are doing a good job learning the basic concepts. Your style needs a great deal of improvement. You should find all of the other replies helpful in this respect. Happy new year to you too.
Bill
Comment on Re^3: How to populate a HASH using a FOR loop to a FUNCTION