develooper Front page | perl.beginners.cgi | Postings from August 2019

Perl with Ajax issue

Thread Next
Matt Zand
August 12, 2019 18:46
Perl with Ajax issue
Message ID:
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 => 'application/json' );
print $json;
print $string;

I am tesitng this on localhost.

I am getting no response. Should I install Perl on the server or does it
come with Apache package.


Matt Zand
Cell: 202-420-9192
Work: 240-200-6131
High School Technology Services <>
DC Web Makers <>
Coding Bootcamps <>

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About