Thank you. In case it is not obvious I am trying to learn to do functional programming in perl. I have done it in lisp, but am trying to move my understanding to perl. Your code is where I
thought I was going in the first place. My mistake was trying to put the sort outside the closure.
--traveler