Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Call C functions from Perl

by mscharrer (Hermit)
on Apr 23, 2008 at 21:33 UTC ( #682502=note: print w/ replies, xml ) Need Help??


in reply to Call C functions from Perl

You can call C functions from Perl. The simplest way AFIK is using Inline::C. I don't have any experience using it together with a VS C compiler, I just used it a few times with the GCC under Linux.

Another way to call C code from Perl is using XS, but IMHO it's only for advanced Perl programmers, e.g. to write Perl extensions.


Comment on Re: Call C functions from Perl
Select or Download Code
Replies are listed 'Best First'.
Re^2: Call C functions from Perl
by hardburn (Abbot) on Apr 23, 2008 at 23:28 UTC

    Or better, take the xs code that Inline::C generated and use it directly.


    "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://682502]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2015-07-29 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (265 votes), past polls