MLUG: Re: [UUG/MLUG] Ok now for my own perl question
Re: [UUG/MLUG] Ok now for my own perl question
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OOps I figured this one out .... I was not being specific enough with my
derefrences.

Scott

On Thu, 7 Oct 1999, Scott K. Laws wrote:

> Ok I ran into this problem the other day and never bothered to figure it
> out cause I found a better way to do what I wanted.  But alas I have run
> into it again.  So here goes:
> 
> 	I am trying to construct a hash of refrences to arrays of
> refrences to hashes.  I have the top level hast to start with and cannot
> figure out how to push the new elements onto the arrays.
> 
> I am doing this to sort of internally represent segments of a MySql
> database so I am looking for a structure that looks like:
> 
> $Tables{table_name}->[3]->{col_name} = some value
> 
> where all the array refrences (ie 3 in the example) are individual rows of
> the table table_name, and are represented by a hash refrence to a hash
> with col_name=value as its contents.  
> 
> 	Did that make any sense at all?  I have done somthing like this a
> LONG tima ago and I know its really somthing pretty simle but I cant seem
> to get it the way I want .... any ideas?  ..... I guess Ill be browsing
> the camel book fer a bit. :)
> 
> Regards,
> Scott
>