for my $ix (1..10){ $textarea[$ix-1] = param('textarea' . $ix); }