K
Kim Gardiner CS2003
Hi,
I have been using perl to launch Prolog via the system("swipl");
command. This has worked fine so far. However, when I try to issue
commands to Prolog via Perl to read in files and perform queries etc
such as
system("consult(roy_uk).");
I get errors such as:
sh: -c: line 1: syntax error near unexpected token `roy_uk'
sh: -c: line 1: `consult(roy_uk)'
Ive only been teaching myself Perl for the last few weeks so I'm not
sure if I am even going about this is the correct way, but any help
would be much appreciated!!
thanks.
I have been using perl to launch Prolog via the system("swipl");
command. This has worked fine so far. However, when I try to issue
commands to Prolog via Perl to read in files and perform queries etc
such as
system("consult(roy_uk).");
I get errors such as:
sh: -c: line 1: syntax error near unexpected token `roy_uk'
sh: -c: line 1: `consult(roy_uk)'
Ive only been teaching myself Perl for the last few weeks so I'm not
sure if I am even going about this is the correct way, but any help
would be much appreciated!!
thanks.