for my $array_input(@userinputdata) { $massinput = $$array_input[0]; $rtinput = $$array_input[1]; }