Eric Moore wrote:
>
> Am I correct that now I would load this set of parameters through the
> instance script?
I do something like that and it works well for me.
> and then in a subsequent instance script, if I wanted to overload one of the
> previous parameters:
I believe unless you are using something like mod_perl instance scripts
don't see previous instance scripts. However, if want you mean to do is
override a project wide default with something specific to your instance
script, then you are close.
This is a classic case of adding two hashes, with the second hash
overriding the first where they collide. An idiomatic way to do this is:
%combined_params = (%global_params, %instance_params);
Then you could call:
my $myapp = RegPack->new(
PARAMS = \%combined_params,
);
and get what you want, I believe.
Hope that helps,
-mark
. . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
[EMAIL PROTECTED] Summersault, LLC
765-939-9301 ext 223 website development
. . . . . http://www.summersault.com/ . . . . . . .
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]