in reply to Can Perl do this...?

Yes, Perl can do this. The question is whether or not you can do this. You could try gathering the data from the form and passing it to the CGI script with backticks, the qx// operator, or a number of other possibilities. An alternative, if you know C, is to use Inline to hook Perl directly into the C code. Another possibility is to use cgic (or something similar), a CGI library written in C that you could simply link to the program and have everything handled in C.

If you have 5 days to figure this out, it shouldn't be too hard. Depending upon what you really need, this is really only a couple of hours worth of work, at most (for the first option or two). Heck, if the parameters are simple enough, it's a 10 minute job so you should have no problems getting it done. Good luck!

Cheers,
Ovid

New address of my CGI Course.

Replies are listed 'Best First'.
Re: Can Perl do this...?
by jonadab (Parson) on Oct 14, 2003 at 14:39 UTC

    Oh, does he want to still use the compiled C program for generating the HTML? (jonadab rereads the original post.) Huh, maybe he does. I was assuming he meant he wanted to replace the C program with Perl, but upon closer inspection I'm not at all sure that's the case.


    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/