RE: Hash to array of arrays

2003-07-14 Thread Charles K. Clarkson
Jerry Preston <[EMAIL PROTECTED]> wrote: : : I have the following hash: This is not a hash. it is a partial algorithm. It contains at least two hashes. Neither of which seem to be a hash of an array of arrays. Can you show us the hash you're referring to? : for $j ( 1..20 ) { : for $i

Re: Hash to array of arrays

2003-07-14 Thread Rob Dixon
Hi Jerry. I'm struggling to make sense of this. This is as far as I have got. You have the following variables $id (constant for the purposes of this question) A source hash %DAT with keys qw(good_setups pin height). A derivative hash %pin with keys qw(order depth). The hash %pin is extracte

Hash to array of arrays

2003-07-13 Thread Jerry Preston
Hi!, I have the following hash: for $j ( 1..20 ) { for $i ( 0..$DAT{ good_setups }{ $id } ) { $pin{ order }{ $i }{ $j } = $DAT{ pin}{ $id }{ $i }{ $j }{ 0 } if $DAT{ pin }{ $id }{ $i }{ $j }{ 0 } > 0; $pin{ depth }{ $i }{ $j } = $DAT{ height }{ $id }{ $i }{ $j }{ 0 } if $D