Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Receiving JSON data with perl

by duyet (Friar)
on Aug 11, 2016 at 06:19 UTC ( [id://1169562]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1169562]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-19 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found