in reply to Splitting a string... Duh?

You need to split into an array:
$serverID = "SERVER1/OU=00/OU=LOCATION/O=COMPANY"; @cnID = split("/", $serverID); print $cnID[0];
This will give you the result you expect.

Originally posted as a Categorized Answer.