in reply to Re: Inline::C in a Perl module
in thread Inline::C in a Perl module
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Inline::C in a Perl module
by enemyofthestate (Monk) on Sep 18, 2017 at 20:54 UTC | |
|
Re^3: Inline::C in a Perl module
by huck (Prior) on Sep 18, 2017 at 19:49 UTC |