On Monday, September 8, 2003, at 12:51 PM, Orton, Yves wrote:
> 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}.
Ok, the only beef I have with that sub (which is news to me :-) is that it is intended to work on $ENV{PATH} but really we need a method that can split appropriately any path on a given platform.
Maybe make it should default to $ENV{PATH} if passed no argument and otherwise split the string it is passed?
I've actually patched the docs to say that it will look at $ENV{PATH} or the local equivalent. I think this is best, because the caller code shouldn't have to figure out what string to pass it.
It already looks at $ENV{PATH}, $ENV{Path}, and $ENV{path} for Win32, since before I started maintaining the module.
-Ken
