Two questions: Where, and how, do you define @zip_dist? It's hard to figure out what the problem with a sort is if we can't see the data that's being sorted.
And number 2: What are you trying to do in line #22? Whatever it is, something should probably have a different name. (You've got @km and $km, and I think you are trying to use them as separate variables. Which can be done, but it's going to confuse you, your maintainer, or perl. Or all three.)
In reply to Re: Sort by distance
by DStaal
in thread Sort by distance
by pglinx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |