You can't always trust the geometry advertised on the website to be accurate though, so best take a tape measure and protractor along to the shop when buying. I'm not entirely convinced the length of the head tube or top tube are critical, since bar height can be adjusted with spacers (albeit upwards only, and only if you haven't cut down the steerer) and reach can be adjusted with choice of stem. Main thing is to get a bike that broadly fits your needs (ie don't get a full on racer when what you want is the relaxed geometry of a tourer) but unless you buy a fully custom frame, there's always going to be some degree of compromise - standard sizes are based on average-sized people, and really, who among us has truly average physical proportions?
You should be able to tweak the set-up to suit your individual dimensions though. I'm the same height as my colleague but he tends to ride a 54cm frame or larger, while I tend to err on the smaller side (52cm frame for preference) because I have little legs. He's also a lot more supple than me, so if I'm riding a bike after he's been on it, I have to drop the saddle and raise the bars, but that's usually enough for me to get a comfortable ride.
Mind you, I wonder if I have more forgiving physiology than some people. I didn't spend much time at all on setting up the bike I used for WCW - just made sure the saddle height was right for me and got on with it. I realised, several hundred km into the ride, that the bars were far too low, but I couldn't be bothered to make the adjustment (it was also apparent by then just how stiff the bars were compared to those on my own bike). I also realised that they were slightly off centre - one of those things you may not notice on a short test ride (I'd only ridden the bike about 20km prior to the event) but becomes very apparent when you've been on the bike for 20+ hours. Still, I came through the ride in pretty good shape - developed a bit of knee pain late on but I think that was more down to the hills than the bike set-up.