perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <>
Subject Re: PerlIO::APR: getting the memory pool
Date Wed, 05 Dec 2001 04:18:39 GMT
On Tue, 4 Dec 2001, Stas Bekman wrote:

> I'm implementing PerlIO::APR (will be APR::IO in mod_perl)
> I need to get my hands on the memory pool. Currently I use the global 
> pool via modperl_global_get_pconf(). which allows you to keep your code 
> as a pure perl:
> open my $fh, ">:APR", $path or die "$!";
> Does calling modperl_global_get_pconf() make things slower? If it does, 
> where do we stick $r/$s? something like this?

you can use the modperl_sv2pool() function, see the
ap_server_root_relative() wrapper for an example.

or just force an APR::Pool argument to be passed.  using the perl builtin
open is just sugar, there should be an APR::File->open function that takes
the same args as apr_file_open().

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message