I've seen that Douglas Adams was a screenwriter for Doctor Who. In HHGG, Slartibartfast initially wouldn't tell his real name. Similarly, the Doctor won't tell his real name. Slartibartfast picks Arthur Dent and takes him on a trip to save the universe, just like in a Doctor Who episode with a companion and the Doctor.
Of course, there are some difference between the reason to not tell his name between these universes. While Slartibartfast wouldn't tell his name because its ridiculous, the Doctor won't tell his name because
silence will fall and The Doctor will die,
according to the last episode of season 6.
So: Was the Slartibartfast character inspired in some way by the Doctor?
So: is there any (out-of-universe) relation between Slartibartfast and the Doctor?