in reply to Calculating the difference of consecutive numbers

Funnily enough, there have been several questions asked recently to do with this kind of thing. I direct you towards the threads associated with extracting corresponding values from another array, Populating a hash with two arrays and Comparing numbers.

rdfield