Re: request length global variable

André Warnier <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
Tosh Cooey wrote:
> I'm drawing a blank here and I probably shouldn't be, but...
> 
> I would like to use a global variable that's only available for the 
> duration of a request.
> 
> I guess I could create() and undef() the variable at the start and end 
> of each request but that seems so... inelegant...
> 
> Any suggestions?
> 
$r->pnotes() ?
http://perl.apache.org/docs/2.0/api/Apache2/RequestUtil.html#C_pnotes_

On the other hand, a global variable can be useful to keep data 
*between* requests (within a single Apache child).
To use carefully, but can be very useful.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.