Hello
Well, I actually got something to work in the end, so maybe calling that "problems" is sounding a bit overstated, but still..:
1.) the Inline::Guile docs say: use Inline::Guile => <<END; Of course this is wrong, should be: (took me some time to see!) use Inline Guile => <<END;
2.) the Inline docs make me believe, that this should work: use Inline 'Guile'; __END__ __GUILE__ (define (square x ) (* x x))
but it doesn't. Neither does this:
use Inline 'Guile'=>'DATA';
or this:
use Inline 'Guile'=>'GUILE';
3.) use Inline 'Guile'=> <<'END'; (define (square x ) (* x x)) END ; my $ans= square(10); print $ans,"\n";
=> Undefined subroutine &main::square called at ./versuch1 line 17.
Hm. Ok the synopsis said (even if it's looking weird): (define square ( x ) (* x x)) so let's try this. ERROR: In procedure define: ERROR: missing or extra expression
Hmmmmmmm.
(define square (lambda (x) (* x x))) ==> finally works. Why not the (define (square x) (* x x)) case?
Christian.