I have no idea the mechanism by which your text is being altered in the Web page output because what you are printing to the file is the same thing you're printing to the Web page. You appear to be using Mercantec SoftCart and they appear to be intercepting your requests and interpreting the information. Thus, by the time your script is done printing, the interpolated information is not yet present. This is not an HTML::TokeParser::Simple issue as the requisite data is not there to parse. I would recommend contacting your vendor for a solution.