http://www.perlmonks.org?node_id=141010


in reply to Finding sum of all digits from 1 to 1 million.

With deference to jeffa and Ovid: you did not answer the right question. What vladb was asking for was "find the sum of all decimal digits appearing in the natural numbers from one to one million inclusive", not "find hte sum of all integers from 1 to one million inclusive".