http://qs321.pair.com?node_id=146771


in reply to Solve Einstein's problem with perl?!

Paradigms of Artificial Intelligence Programming has an excellent chapter 11 "Logic Programming" which uses a nearly identical problem (the "zebra puzzle") as example input for a prolog interpreter developed in the chapter.

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com