in reply to calling external program from CGI

Seriously? test_process.pl is not a Perl function, and \"$myQuery\" isn't even close to valid Perl either.

my $output = `command`;

Replies are listed 'Best First'.
Re^2: calling external program from CGI
by stan131 (Acolyte) on May 07, 2009 at 10:16 UTC
    Ikegami,
    I am newbie to CGI and still not able to what am I doing wrong. I have a perl program that takes parameter and generates an array. Now I need to call this program from my .cgi file and retrieve the array. Since program cannot return(only subroutines can), how do I invoke this from CGI and fetch the array.
      Processes communicate via file handles, and file handles can only transmit bytes (not Perl arrays). You need to serialize the array somehow. I thought you already addressed that issue using Storable?