On Thu, May 31, 2001 at 06:36:28AM -0700, C.Ouellette wrote:
> I need to be able to write a a perl script to either
> include or use previously written C programs and
> API's.
>
> There are a few modules out there to do that. I am
> looking into using either SWIG or Inline. I'm not
> sure which one would be the best one to use.
>
> Advice on this topic would be appreciated.
Personal opinion:
I wouldn't bother with SWIG. If you want to use perl 5.6 you'll need
the latest re-write of SWIG, and I don't think that's had a stable
release yet.
Don't ignore XS. If you know Perl and you know C, it's really not that
bad, and if what you want to do is tricky it's probably the best.
Inline is easy to use, but it's still relatively new. However the
recently released 0.40 version has many improvements, and if your needs
aren't too great it's probably the way to go. You'll be an early
adopter though.
BTW, Inline has a website now: http://inline.perl.org/
So you pays your money and you takes your choice.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net