Hello,

I see where in Template.pm's pod it says that the output of process() can
be specified as the third arg. It suggests using
$tt->process($file, $vars, $req) under mod_perl.

But in the tutorial it seems to suggest another approach:
my $template = Template->new({ 
            INCLUDE_PATH  => "$websrc/src/user:$websrc/lib",
            PRE_PROCESS   => 'config',
            OUTPUT        => $r,     # direct output to Apache request
        });

and then of course nothing in the process() call.

While mucking around I found that I could omit both of these
specifications of the Apache request object as the output destination, and
yet the output is sent to $r just the same.

Is this because *STDOUT is magically overloaded by Apache, or some deep
magic like that? Am I missing something, or why the references in the
docs?

Thanks,

- nick

~~~~~~~~~~~
Nick Tonkin



Reply via email to