ActiveBlog

When STDOUT isn't so standard
by Kevin "kj" Woolley

Kevin "kj" Woolley, January 30, 2006

Have you ever tried debugging a mod_perl app in Komodo only to find that your output is going to the controlling terminal of the webserver, rather than your web browser? The reason this happens on some configurations is not well...

Have you ever tried debugging a mod_perl app in Komodo only to find that your output is going to the controlling terminal of the webserver, rather than your web browser?  The reason this happens on some configurations is not well understood, but the solution is simple.

Rather than using Perl's print() function, use the print() method of the mod_perl request.  In other words, if your request object is $r, then $r->print() is the way to go.

Subscribe to ActiveState Blogs by Email

Share this post:

About the Author: RSS

kj is ActiveState’s Systems Administrator. He was born in London, Ontario, grew up in North Vancouver, and spent several years in the Northwest Territories doing technical sales. As a technical infrastructure specialist, he brings over twenty years of systems administration experience to ActiveState.