Help for this page

Select Code to Download


  1. or download this
        $pg->owns( qw/ $Who gold / );
    
  2. or download this
        my $a = shift @important;
        while( my $z = shift @important ) {
    ...
            $a = $z;
        }
        return 1;
    
  3. or download this
        sub _check_path {
            my ( $self, $predicate, $lvl1, $lvl2, $arg1, $arg2 ) = @_;
    ...
                exists $self->{_arg_levels}{$predicate}[$lvl1]{$arg1}[$lvl
    +2]{$arg2};
            return; # nope, didn't find it
        }
    
  4. or download this
      $pg->add_fact( owns => qw/ Ovid socks / );
      $pg->add_fact( gives => qw/ grep grief Ovid / );