calling perl program within a cgi script with parameters from html form

Поиск
Список
Период
Сортировка
От Deepblues
Тема calling perl program within a cgi script with parameters from html form
Дата
Msg-id bd6cfb9e0504260625258a26e@mail.gmail.com
обсуждение исходный текст
Ответы Re: calling perl program within a cgi script with parameters from html form  (Sean Davis <sdavis2@mail.nih.gov>)
Re: calling perl program within a cgi script with  (Frank Bax <fbax@sympatico.ca>)
Список pgsql-novice
I have a problem linking my cgi script to the perl function.
I have perl functions to perform manipulations to the database.
I am creating a web front end to it. I have a html form which accepts data from the user and calls the cgi script ( in perl)which processes this data , performs validation and passes the form data as parameters to a perl program. My cgi script seems to work fine as far as processinng goes. My perl program works too. But I am not able to call the perl program from the cgi script. I am tryin to test the main perl program by having lots of HTML output statements. but it doesn't appear on the webpage.
 
suppose my form values are stored in variables
$a = param('name')
$b = param('age')
 
Now I need to call a perl function wth $a, $b as parameters.
My $string = "perl test.pl $a $b"
system($string)
 
This is wht I am using now. when I try  eg: perl test.pl john 12    It works. And the variables are bnided properly in cgi script. I cheked to make sure. Can anyone suggest how i should proceed.
 
Thanks in advance
Deepblues
 

В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Poor-man's enumeration type
Следующее
От: Sean Davis
Дата:
Сообщение: Re: calling perl program within a cgi script with parameters from html form