for (my $line=0; $line < @input; $line++) { my $titel = $input[$line]; $ua->request(POST "$host\/test.php", Content_Type => 'form-data', Content => [titel => $titel, submit => "Absenden"]) or die "kann nicht Posten"; }