$serverID = "SERVER1/OU=00/OU=LOCATION/O=COMPANY"; @cnID = split("/", $serverID); print $cnID[0];