Don't ask to ask, just ask | |
PerlMonks |
Re: AI::Perlog Unification helpby arhuman (Vicar) |
on Aug 14, 2002 at 20:35 UTC ( [id://190221]=note: print w/replies, xml ) | Need Help?? |
I forgot to mention the database format : (You can understand it from the source, but I'll take a low profile as I provided no doc AT ALL :-) *******database.txt********** add_fact(theory=> qw(foo bar baz)); add_fact(theory=> qw(foo tac toe)); add_fact(theory=> qw(tic tac toe)); add_fact(theory=> qw(tac lac toe)); *******database.txt********** Now a little example on how to use it : *********try.pl**********
I've updated the display function's code in my previous post to handle 'false' answers. "Only Bad Coders Code Badly In Perl" (OBC2BIP)
In Section
Seekers of Perl Wisdom
|
|