Specifically, because __DATA__ ends the perl, the 1; needs to go before the __DATA__:
... use Inline "C"; Inline->init; 1; __DATA__ __C__ ...
update: for example, Inline: "More about the DATA Section". That also gives examples of doing the source code as a heredoc (look for << on the page), where you could then have perl after the Inline source code as well.
In reply to Re^2: Inline::C in a Perl module
by pryrt
in thread Inline::C in a Perl module
by enemyofthestate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |