foreach my $f (@ren) { my ($ft1, $ft2, $ftp_upload_location) = @$f; $ren[0]->[2] = "/DE/IN"; $ren[1]->[2] = "/DE/OUT";