Simon Perreault wrote:
On Friday 22 July 2005 10:27, Stas Bekman wrote:
$r->notes for strings
$r->pnotes for perl scalars
Thank you very much for your quick reply. I didn't know about those methods.
I should have mentioned that I am running under ModPerl::Registry and am
trying to keep my scripts free from any mod_perlism so that they can still be
run stand-alone. Is there still a solution?
But you need this functionality only under mod_perl, right? in which case
you can do something like:
# mp1.x
if ($ENV{MOD_PERL}) {
my $r = Apache->request;
$r->pnotes(...);
}
# mp2.x
if ($ENV{MOD_PERL}) {
require Apache2::RequestUtil;
my $r = Apache2::RequestUtil->request;
$r->pnotes(...);
}
I'm not quite following you. You mean you need a solution that will work
with mod_cgi too? or do you need
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com