in reply to Keeping separate array data related

I also am confused. But limiting my comments to your question of not using duplicate entries from the array @texts, you could do the following:

Add this before a loop that iterates over the array:
%seen = ();

Add an unless after your submit_form call. $item is the current item from @texts.
mech->submit_form( .... ) unless $seen{$item}++;

TheEnigma