[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Buffering Output
From:       "raptor" <raptor () unacs ! bg>
Date:       2001-07-31 20:47:19
[Download RAW message or body]

Anybody know if exist some module how CGI::Out for buffering output in CGI
script ?

]- The other approach if  U don't want to append to var...then U can do
something like this :

my $buffer;
sub xprint { $buffer .= @_ };

possibly U will want to move this code into separate module...!!

then use xprint instead of print... and on the end of the script just :

print $buffer;

I also often direct all my output like errors,debug messages etc... trought
similar function... this aproach is also very useful 'cause if for example
want later to switch to other envoirment u need to correct just one function
or if U use Template system...

HtH
=====
iVAN
raptor@unacs.bg
=====

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic