in reply to Re: compare values within a hash
in thread compare values within a hash


Thanks Java
I didn't realize how vague I was until I read it again. The file is sorted lexically. Also, in all cases, the lesser of the two numbers is in the first column. I basically am trying to say that foreach same group, are the numbers in the first column within 10 of each other. If yes, are the numbers in the second column ALSO within 10 of each other.

Your example would give me.

group1 10 25

This assumes that the last row would actually be

group1 21 25

But they idea is to collapse all three lines into one. I am looking for a "window" or frame that would essentially include all of the overlapping lines collapsed into one. Eventually, I will use the single lines in downstream applications.

You folks are fantastic. I work with people that are great programmers, not so great at explaining why I need to do why they say!

Replies are listed 'Best First'.
Re^3: compare values within a hash
by gwadej (Chaplain) on Oct 27, 2008 at 18:55 UTC

    When I am interviewing programmers, one of the defining differences between a senior developer and an intermediate developer is the ability to explain what they are doing. I normally expect seniors to be able to mentor more junior people.

    G. Wade