in reply to Need a Help - calling C program from Perl
#!/usr/bin/perl -w ##use strict; use Inline C; greet('Content-type:text/html'); greet('Hello from c via CGI'); __END__ __C__ void greet(SV* sv_name) { printf("%s\n\n", SvPV(sv_name, PL_na)); }
The CPAN link above has a lot of information about useage.Bareword "C" not allowed while "strict subs" in use at c.pl line 3. BEGIN not safe after errors--compilation aborted at c.pl line 3.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Need a Help - calling C program from Perl
by BrowserUk (Patriarch) on Oct 24, 2002 at 13:38 UTC | |
|
Re: Re: Need a Help - calling C program from Perl
by true (Pilgrim) on Oct 24, 2002 at 19:53 UTC | |
by lestrrat (Deacon) on Oct 24, 2002 at 21:06 UTC |