This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
To: Jamie Krasnoo <jkrasnoo@socal.rr.com> From: Matt Sergeant <matt@sergeant.org> Subject: Re: Apache pnotes Date: Sat, 9 Jun 2001 00:14:08 +0100 (BST) On Sat, 9 Jun 2001, Jamie Krasnoo wrote: > The Eagle Books explanation of notes isn't very clear. Could someone point > me to a page that explains it somewhat better? In what situation would it be > beneficial to use them? You use notes (or pnotes) when you want a kind of global variable that is localised to the request, but also accessible to sub-requests. For example, Apache::Request stores it's current instance in pnotes, so that it's guaranteed to be unique to that request. If it were stored in a global, it would be the same apr object in subrequests. Use pnotes instead of notes when you either need to store a perl object, or need to store binary nulls. ===