http://www.perlmonks.org?node_id=684434

askgetanswer has asked for the wisdom of the Perl Monks concerning the following question:

when i try to split about 10,000 array of strings and try to insert into mysql - i get server error but less 1,000 works fine - here is the code please help - thanks
my @txtquearr = split('~', $txtque); ###################################################################### +######### my $count = 0; foreach $txtque (@txtquearr){ $count = $dbh->do("INSERT INTO ques (username,userque,userquedetail,us +erquecatgory,userresponsecount,quegood,quebad,queid,userquedate,quevi +deo,queaudio,quepic,email)values('$usernamenow','$txtque','$txtdetail +','$cat','$userresponsecount','$quegood','$quebad','$aaqueid','$userq +uedate','$txtvideolink','$txtaudiolink','$txtpicturelink','$txtemail' +)",undef,$usernamenow,$txtque,$txtdetail,$cat,$userresponsecount,$que +good,$quebad,$aaqueid,$userquedate,$txtvideolink,$txtaudiolink,$txtpi +cturelink,$txtemail); print "Ques Inserted inoto Data\n"; print $txtque; }

May 05, 2008 at 12:54 UTC Janitored byMcDarren, Original content restored.