|Perl Monk, Perl Meditation|
calling external program from CGIby stan131 (Acolyte)
|on May 07, 2009 at 08:40 UTC||Need Help??|
stan131 has asked for the
wisdom of the Perl Monks concerning the following question:
I am writing my first CGI program and having issues calling external programs from CGI program. I have captured Query in CGI program. Now I need to call external perl program say test_process.pl passing the Query parameter. test_process.pl takes Query as parameter does its processing and needs to return an array.
Here is what I have tried:
Since test_process.pl is a program, not sure if it can return array back. Do I need to call a subroutine within test_process.pl ?
My current approach is test_process.pl writes the array using Storable and I retrieve the array in CGI script. But as you can see I am not able to call test_process.pl in the first place.
Where am I going wrong?
Appreciate your help.