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


in reply to Building an anonymous subroutine

Thanks to everyone who contributed to this thread. Wow. There truly is more than one way to do it! We've got nested anonymous subs, code strings mapped with eval, a quasi-switch statement disguised as a hash, an OO solution ... I've learned a bunch here.

Thanks again, all,

BCE
--You'reYour punctuation skills are insufficient!