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

How can I embed my C program in Perl?In my previous hardware interfacing programs, I used C. So to gain access in the lpt port,in C it goes like this: outportb(0x378,2); How can I embed lines like these in my Perl program. I want to use Perl for hardware interfacing via the network. If there is anything you can help i'm thankful.

Replies are listed 'Best First'.
Re: embedding C in Perl?
by virtualsue (Vicar) on May 27, 2002 at 08:34 UTC
    The Inline::C module by Brian Ingerson should help you do that.
Re: embedding C in Perl?
by Beatnik (Parson) on May 27, 2002 at 09:43 UTC
    Since my last experiment, I too would stick to Inline::C but since virtualsue already mentioned it :)
    Anyway, not entirely embedding, more like extending is perlxs (also check perlxstut)

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.
Re: embedding C in Perl?
by Juerd (Abbot) on May 27, 2002 at 13:38 UTC