in reply to Need a Help - calling C program from Perl

You could have a look at Inline::C, but why not just spit out a line "Content-type: text/html", followed by two CR and LF chars and then just printf the rest to STDOUT? This way you could directly run your program as barebones CGI...

--
Cheers, Joe