From the documentation on WWW:Mechanize:
"Returns a text-only version of the page, with all HTML markup stripped. This feature requires HTML::TreeBuilder to be installed, or a fatal error will be thrown."
My guess is that "all HTML markup stripped" is the cause of your discrepancy