In the perfect world, the value of the stock at the close before the ex-dividend date will be equal to the value of the stock plus dividend when it opens on the ex-dividend date. But of course, we don't live in a perfect world. The ordinary vs. capital gain tax issue is just one example...