这是代码部分,我正在尝试使用 LWP 发布整个数组,但服务器只接收数组的第一行(0 索引),而其他人没有被发送到服务器,请指导我做错了什么
$data_post[0] = "text1";
$data_post[1] = "text2";
$data_post[2] = "texxt3";
$data_post[3] = "text4";
$data_post[4] ="text5";
my $ua= LWP::UserAgent->new();
my $response = $ua->post( $url, { 'istring' => @data_post} );
my $content = $response->decoded_content();
my $cgi = CGI->new();
print $cgi->header(), $content;