#!/usr/bin/perl -w use strict; #use Devel::StealthDebug; use lib '.'; use Perlog; use Perlog2; #my $pg = AI::Perlog->new; my $pg2 = AI::Perlog2->new; #$pg->load_from_file('database.txt'); $pg2->load_from_file('database.txt'); # # Perlog2 should definitly export display ;-) # AI::Perlog2::display($pg2->theory(qw/$x tac $y/)); print "*********\n"; AI::Perlog2::display($pg2->theory(qw/? $x tac $y/)); print "*********\n"; AI::Perlog2::display($pg2->theory(qw/tic tac toe/)); print "*********\n"; AI::Perlog2::display($pg2->theory(qw/tIc tac toe/)); *********try.pl**********