in reply to mod_perl v2
sub printContent { print $_[0]; # works in CGI and mod_perl environments } [download]