.... after connecting and login ........ $ftp->site("CHMOD 755 NEW.cgi") || die &error("Couldn't chmod NEW.cgi : $!"); ........ other code .......