Category: Perl

Perl get browser to render HTML instantly while script runs

Simply copy this code into the top of your Perl script and enjoy. All print statements will go straight to users browser and render instantly. The explanation $|++; #This is needed to disable bufferingprint “Content-type: text/html\r\n”;# This header is a quick hack to deny browser to gzip/deflate your outputprint “Content-Encoding: plain\r\n\r\n”;&load_buffer; #keeps the browser window […]

Read More »

Posted in %1$s
Theme by Flythemes
x  Powerful Protection for WordPress, from Shield Security
This Site Is Protected By
Shield Security