use File::Spec; $path = File::Spec->catfile('path', 'thisway');