I think you can use h2ph to convert the header file into something that
perl can use.  There's several different ways to mix Perl with C/C++.  You
can use one of the embed modules, XS, inline.pm, etc.  Look at the Perl
perldoc for a list of appropriate documents on embedding/extending
Perl.  If you have the Camel or Panther Books (Programming Perl and
Advanced Perl Programming from O'Reilly Assoc.), they have sections that
show you how to do this as well.  inline.pm is relatively new, so I think
you need to look at its perldoc and I *think* inline.pm is really just for
embedding small C functions directly into your Perl code.

--Curt

On Thu, 29 Mar 2001, Rajan Sharma wrote:

> Can i use c header file in perl program. Want to use some functions that are 
> there in c header file.
> 
> I know this is not DBI question. But if you can answer me for it.
> :)
> 
> Thanks
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 

Reply via email to