canonpath


File::Spec->canonpath

Performs logical cleanup of a path, doesn't physically check the filesystem.