I want to split
$path = getenv(\'PATH\');
into its components. How do I determine the separator char in an os-dependent fashion?
I seem to remember that Windows will accept both forward- and back-slashes as a file-separator, so you may not have to worry about it.