On Thu, Feb 21, 2002 at 10:09:42AM -0500, darren chamberlain wrote:
> 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?
Yep, although specifically it's the value of the INCLUDE_PATH (i.e.
the list reference) that's important, rather than the hash it's in.
So if you do this:
> push @{$config->{ INCLUDE_PATH }}, "/path/$site";
it's OK, but not if you do this:
$config->{ INCLUDE_PATH } = [ qw( new path altogether ) ];
HTH
A