in reply to Simple form of Machine Learning/AI with Perl?
See Machine Learning on Perl, new last week, bit more in depth than your description, maybe.
Hope this helps!