RE: sharing big global hash and objects

2005-02-17 Thread Barksdale, Ray
> -Original Message- > From: Perrin Harkins [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 17, 2005 3:13 PM > To: Barksdale, Ray > Cc: mod_perl > Subject: Re: sharing big global hash and objects > > > Does that work? It looks really strange t

Re: sharing big global hash and objects

2005-02-17 Thread Perrin Harkins
On Thu, 2005-02-17 at 13:56 -0600, Barksdale, Ray wrote: > The module containing $hash is loaded in startup.pl at boot. > I then have a package that creates an object based on a slice of the hash: > > package FooBar; > > use Config qw($hash); > > sub new { > my ($class, $table, $field) = @

sharing big global hash and objects

2005-02-17 Thread Barksdale, Ray
I have a large structure loaded from a db table that contains parameter values. The structure looks something like following (please excuse formatting, MS lookOut) my $hash = { table1 => { field1 => { param1 => val, param2 =>