in reply to Receiving JSON data with perl

As you already using CGI you might want to use:
my $cgi = CGI->new(); my $params = $cgi->Vars();
to get the parameters sent by ajax and save it in a hash. This works for both GET and POST ...

Replies are listed 'Best First'.
Re^2: Receiving JSON data with perl
by Anonymous Monk on Aug 11, 2016 at 06:35 UTC
Re^2: Receiving JSON data with perl
by JayBee (Scribe) on Aug 11, 2016 at 23:34 UTC
    I also used your suggestion with the debug subroutine noted above, and as noted in earlier response, started to get more useful results.
    Here's another site hinting at more thoughts, but didn't work out for me:
    iterate-dynamic-array-in-perl-cgi-script