http://www.perlmonks.org?node_id=1018528


in reply to Re: Real life uses for closures.
in thread Real life uses for closures.

Oh, and if you want something really closurey, Sort::MultipleFields. There's no clean way of doing what that does without using closures.

The other obvious approach to that problem is to build some code using eval. In fact, I find that you can almost always replace eval with a closure.