Hello Jason, > $VAR1 = { > 'oids' => '%response_values', > 'time' => '03/25/2004 03:16:39' > }; ... > If so, what is wrong with my assignment statement ? > > push @{$response_hash{$request_id}},{time => "$time",oids => > "%response_values"};
That is exactly what Charles told you in his first response. Look at the $VAR1 at the top. Do you see that %response_values is quoted? That means that it's a string in your data structure, not a variable that contains data. What you need to do is this : push @{ $response_hash{ $request_id } }, { time => $time, oids => \%response_values, }; In other words, do not quote variables unless you _know_ that's what you need to do, because most of the time it isn't. Also, note that I put a backslash before the %response_values, because values in a hash can only be scalars. This way, you're putting a reference (which is a scalar) to %response_values in the hash, keyed on the 'oids' key, so that you can access it in the future. Once you change this (and correct any errors the correction may cause), Data::Dumper should print the correct data structure, where the value for key 'oids' is the contents of your %response_values hash. Of course, then you'll need to know how to access those values by using the reference. See the perlref and perlreftut manpages (using perldoc) for more information. I suggest you read those thoroughly, because you'll need it, considering what you're trying to do here. Good luck, J-S -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>