This will give you the result you expect.$serverID = "SERVER1/OU=00/OU=LOCATION/O=COMPANY"; @cnID = split("/", $serverID); print $cnID[0];
Originally posted as a Categorized Answer.
In reply to Re: Splitting a string... Duh?
by barrd
in thread Splitting a string... Duh?
by KenShackelford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |