in reply to Relative to absolute path
Take a look at File::Spec. There is a canonpath (canonical path) functuon that should clean up a path like that, as well as a rel2abs function that should convert it to an absolute path.