in reply to Traverse and calculate in 2D array

Hi,

fruiture showed you a solution that works just fine on your posted data set. (++) But it seems worth pointing out that it wouldn't work if the records werent paired like that. For instance on

my @data = ( ["1040564312", "IN", 258381720], ["1040564322", "IN", 258385268], ["1040564322", "OUT", 4194081727], ["1040564312", "OUT", 4194077715 ], );
In the future can you please think of a better title name than "array". :-) And maybe try to descibe your problem a bit more?

--- demerphq
my friends call me, usually because I'm late....