Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Tuesday May 10, 2005
11:19 AM

AI::Prolog 0.64

[ #24609 ]

I've released AI::Prolog 0.64 which is on its way to a mirror near you. I found I needed to do that prior to my talk tomorrow in order to make it easier to pass data from Perl to Prolog and back again. The draft of the talk, written using S5 (thanks for the heads up on that, folks), is fairly rough and fits the screen of my iBook, so it might look poor on smaller resolutions.

use AI::Prolog 0.64;

my $prolog = AI::Prolog->new(<<"END_PROLOG");
  append([], X, X).
  append([W|X], Y, [W|Z]) :- append(X, Y, Z).

my $list = $prolog->list(qw/foo bar 7 baz/); # <-- helper methods!
$prolog->query("append(X,Y,[$list]).");      #     make life easy
while (my $results = $prolog->results) {
    print "@$results\n";

Meanwhile, I believe the new parser is almost done, but I have no time to work on it. Richard Freytag, however, has done admirable work. The rough cut he's shown me is quite advanced.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.