Perl news

Ed Eddington ed at pcr7.pcr.com
Thu May 31 10:47:46 CDT 2001


>From a Perl.com newsletter...

The big news this week is that Brian Ingerson has released the 
latest version of Inline, version 0.40. Inline is an absolutely 
fantastic module which makes it very, very simple to interface C 
code with your Perl programs. The name "Inline" comes from the 
way the code is fed to the Inline module as strings in your
Perl program: You say something like

    use Inline C => "int add(int x, int y) { return x + y; }"

and Inline goes away and parses the C code, determines how it 
should look as a Perl function, creates the magic linkage between 
C and Perl, compiles it, and caches the compiled copy. The net 
result is that you now have a new Perl subroutine, 'add', which 
takes two arguments and adds them together. 



More information about the grand-rapids-pm-list mailing list