Ack! Fellow programmers, I have what is probably a rudimentary problem I hope some one can solve. I'm trying to construct a hash of hashes from a form. The relevant code is as follows: for $modelkey (@model) { $datum = shift @data; @fields = (split /&/, $datum); for $field(@fields) { ($key, $value) = split /=/, $field; $bigData{$modelkey}{$key} = $value; print "$modelkey<BR>$key<BR>$bigData{$modelkey}{$key}<P>"; } if ($bigData{$modelkey}{deleting} =~ /delete/) { $trash = shift @data; $trash = shift @model; } } A sample of the results are as follow: 301 Sqft 900 301 Type 1br/1ba 301 Price $194,900 301 Assesments $223.12 302 Sqft 1084 302 Type 2br/2ba 302 Price Sold 302 Assesments $286.08 The problem is that I can print while the print statement is where its at now but once I try to print outside the second foreach loop, nothing prints. I'll eventually need to sort %bigData by the outer hash keys which means %bigData's scope needs to extend beyound the second foreach loop. Does anyone have any ideas why this scoping problem occurs? Does anyone have any ideas on how to overcome it? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]