http://qs1969.pair.com?node_id=181181


in reply to Puzzle: need a more general algorithm

OK, I dropped my solution into the code section.

-- Randal L. Schwartz, Perl hacker