Re: Perl with Ajax issue

2019-08-13 Thread David Dorward
On 12 Aug 2019, at 19:45, Matt Zand wrote: use CGI; Do read [CGI: CGI.pm has been removed from the Perl core][1] Should I install Perl on the server or does it come with Apache package. Apache HTTPD does not include a Perl distribution although some third-party bundles include both Perl

Perl with Ajax issue

2019-08-12 Thread Matt Zand
I am making Ajax call to Perl page and try to parse data in perl page and return results to html page on my perl page, I have use strict; use warnings; // use JSON; use CGI; my $cgi = CGI->new(); my $string = $cgi->param('sform'); my $json = encode_json( [$string] ); print $cgi->header( -type =>