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

ced4dad has asked for the wisdom of the Perl Monks concerning the following question:

Gentlemen... I am attempting to read formatted HTML from a .txt file, as an entire file, or as a line by line read. I then wish to display the content as simple text, exactly as it was in the file. In attempting to bring the data in as a string or entire page, PRINTING it to the screen yields the formatted HTML output and NOT only the ASCII content of the file. Is there an alternative to PRINT or PRINTF that would yield only the ASCII text being shown on the screen? The content of the file is less than 2000 characters.