----- Original Message ----- From: "John R. Hogerhuis" <[EMAIL PROTECTED]>
To: <inline@perl.org>
Sent: Thursday, October 30, 2008 7:20 AM
Subject: How do you put inline code in a separate file


The Inline POD alludes to the ability to specify a filename to
indicate where the foreign code resides.


use Inline C => './try.c';
foo();

That works fine if foo() is defined in try.c.
Note that you must provide a '/' in the filename - otherwise Inline does not recognise that you're specifying a file. You could also specify a fully-qualified filename if you want, but the following won't work:

use Inline => 'try.c';
foo();

Cheers,
Rob

Reply via email to