While reading the title of OP, I was also thinking of using File::Spec module. In my version, however, usage of that module would have been limited only to get the path separator for the host OS|file system, and '/' would have been used literally per request.