in reply to IYO, what is elegant code?

The mathmatical definition of "elegant" is a theorum that is simple, yet powerful. That sounds like it is a very subjective term, and I guess in the strictess sense, it is. However, both math and CS majors tend to agree about wheather a particular therum or code is elegant.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated