my $json = to_json( { myData => \@AoH } ); my $url = 'http://myweb.com/cgi-bin/memo.pl'; my $ua = LWP::UserAgent->new; my $request = POST($url, Content => [data=>[$json]]); $request->header( 'Content-Type' => 'application/json' ); my $response = $ua->request($request); print $response->content, "\n"; #### print header; my $q = CGI->new(); my $json = $q->param('data'); my $decoded_json = decode_json( $json );; print Dumper $decoded_json;