# change remote directory my ($ft1, $ft2, $ftp_upload_location) = @$f; $ren[0]->[2] = "/DE/IN"; $ren[1]->[2] = "/DE/OUT"; $ftp->cwd ($ftp_upload_location);