On Mon, 1 May 2000, Richard Dice wrote:

> > <Perl> blocks get evaluated in the Apache::ReadConfig namespace, which
> > knows nothing about <location> it's placed in. What you can do is to set
> > FQDN variables from within <Perl> section:
> 
> Right... I didn't actually expect the <perl> block suggestion to be something
> that would work.  I didn't know whether it would or not, actually.  [Regardless,
> I wouldn't have known the reason why/why not, so your explanation was very
> helpful. :-) ]
> 
> Still, I didn't feel out of place saying what I said because what was being
> discussed were the addition of new things to mod_perl, anyhow (e.g. PerlSetScalar,
> PerlSetArray, PerlPushArray, PerlSetHash).  If we're talking about new stuff,
> then really, perhaps the way I suggested the new stuff could be included (via
> <perl> blocks, or <local-perl>, whatever, rather than a handful of new
> configuration directives) might be a good idea.

For what its worth, I may just go ahead and start doing some XS code so
that I can invent my own configuration directives.

Its still an interesting discussion though - I wouldn't go as far as
Stas, and add "PerlSetHash" (because they can easily be created from
arrays), but PerlSetArray and PerlPushArray seem quite
useful to me - although I don't think the name is quite right - if I'm
doing stuff for non-programmers, the name "Array" means nothing to them,
and "Push" means even less! ;-)

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org

Reply via email to