in reply to How to use Inline::C properly

Hello, fellow Vancouverite (and UBC'er at that):)

I've never used Inline::C, though I work with an author of several Inline modules. Though this isn't directly answering your question, I'm wondering why you're using Perl at all for this task. You seem to have written a complete C program and then wrapped it in Perl - what's your motivation for doing so? What's preventing you from just writing the program in C?

Replies are listed 'Best First'.
Re^2: How to use Inline::C properly
by macli (Beadle) on Mar 06, 2007 at 23:58 UTC
    Hello geekphilosopher :)

    I did not write the c myself, I am just being lazy and thought I could try to run the c in Perl and see how it works :).

    there is a similar perl script which do the same thing as the c, but it is not portable on my ppc linux (yellow dog linux), see:

    http://perlmonks.org/?node=p0f

    since the c program works both on x86 and ppc linux, so I guess I could wrap it in Perl and solve the portability problem.