[Templates] Process method timing quandry...

Kristian Flint kristian.flint at tamar.com
Wed May 21 09:05:42 BST 2008


Awesome thanks very much!

Bit annoyned I didn't think of that or find it, but still, much
appreciated!

Kristian. 

> -----Original Message-----
> From: templates-bounces at template-toolkit.org 
> [mailto:templates-bounces at template-toolkit.org] On Behalf Of 
> Paul Seamons
> Sent: 20 May 2008 16:11
> To: templates at template-toolkit.org
> Subject: Re: [Templates] Process method timing quandry...
> 
> Under CGI or mod_perl1, you can accomplish this by setting 
> the autoflush marker on STDOUT.  Either of these will do it.
> 
> local $| = 1;
> 
> OR
> 
> use IO::Handle;
> STDOUT->autoflush;
> 
> If you are running under mod_perl2 you will need to get your 
> apache request object and call ->rflush everytime you have 
> data to send to the browser.
> 
> sub handler {
>     my $r = shift;
>     print_something();
>     $r->rflush;
> 
>     print_something_else();
> }
> 
> Paul 
> 
> _______________________________________________
> templates mailing list
> templates at template-toolkit.org
> http://mail.template-toolkit.org/mailman/listinfo/templates
> 



More information about the templates mailing list