Quoting Leo Lapworth <[EMAIL PROTECTED]> [21 Feb-02 09:31]:
> What I want it to be able to do is to change the include path
> from within the handler.

I don't have an answer, but a related question.  Does the
configuration hash that gets passed around always get passed by
reference?  That is, if I modify the INCLUDE_PATH entry in the
original hash, does it get reflected in the INCLUDE_PATH the
Provider uses?

If so, I'm thinking this will do it:

  my %config = (
      INCLUDE_PATH => [ "/path/one", "/path/two" ],
      ...,
  );

  # Do your stuff
  
  my ($site, $version) = get_site_and_version;

  push @{$config->{ INCLUDE_PATH }}, "/path/$site";

And so on.  There's a lot of code, though, and I'm too lazy to go
through it.  Does anyone have an answer?

(darren)

-- 
The moment one gives close attention to anything, even a blade of
grass, it becomes a mysterious, awesome, indescribably magnificent
world in itself.
    -- Henry Miller


Reply via email to