passing parameters to perl cgi via exec - solved for me :-)
| From: | Jim Carey | Date: | Tue, 10 Oct 2000 21:47:42 +0000 |
| Subject: | passing parameters to perl cgi via exec - solved for me :-) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19426@lists.php.net to get a copy of this message | ||
Hi,
a while ago I asked questions about how I could pass parameters to a perl
cgi via exec. I finally figured it out -
exec ("/pathto/perl.cgi p1=value p2=value",$result,$returnval);
when in the perl cgi parse the input by:
use CGI qw(:all);
my $p1 = param('p1');
my $p2 = param('p2');
and Jan'es yer aunty - works well
Jim Carey
www.OZbcoz.com