Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, can somebody tell me how do invoke a C function which takes a C structire as argument, from a perl script..? can I define a typemap for C structure..?

Replies are listed 'Best First'.
Re: calling C function from Perl
by AgentM (Curate) on Dec 06, 2000 at 21:08 UTC
    You'll need to use a basic program perl2xs (previously known as h2ph, though the functionality is very different) and then modify its output after you've read through perlxstut and proabably perlguts and any other docs that these link to. The program basically creates a frame which you can work with. Numerous examples are provided to get you on your way. It simpler than it sounds but lots of busy work is involved. Sorry.
    AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.