Hi,

The demo:

##########################################
C:\>type data.pl

use warnings;
use Inline C;

print multiply(3, 7), "\n"; # line 5

1;

__END__

__C__

int multiply(int x, int y) {
   return x * y;
}

C:\>type try.pl

use warnings;
require 'data.pl'; # line 3

C:\>perl try.pl

Undefined subroutine &main::multiply called at data.pl line 5.
Compilation failed in require at try.pl line 3.
One or more DATA sections were not processed by Inline.

C:\>
##########################################

Does anyone here know how to get try.pl to work *without* rewriting data.pl so that it doesn't make use of the DATA section ?

Cheers,
Rob

Reply via email to