On Monday, September 8, 2003, at 06:54 AM, Orton, Yves wrote:

The best dictionary of known $^O values that I know of is in File::Spec.

Actually, I think a better dictionary is in Module::Build, in the top-level module.



Dunno. I think its moot if Ken implements this in File::Spec. He can use
$Config{path_sep} if its robust enough, otherwise he can code it as needed
for each class.

File::Spec already has a path() method that returns a list of path elements. Looking at the code I inherited though, it doesn't look very robust. I can patch for better use of $Config{path_sep}.



I put together a patch for File::Spec to add a pathsep()
and started on split_search_path() patch for File::Spec, but its on my home
machine, and I didnt want to pursue it without some discussion.

I don't think it's a good idea to have a pathsep() method, for reasons similar to the ones for not having a dirsep() method ('/', '\', ':', etc.). Much better to return the data structure itself.


-Ken

Reply via email to