in reply to Multi Dimensional Hashes

It depends a lbit on exactly what you want to extract, but $returnedData is a reference to a hash; that hash is %{$returnedData}. Its values are references to hashes. You can use the keys function on %{$returnedData}, for example. You can print "everything" by something like:
%HoH=%{$returnedData}; foreach $x(keys %HoH){ print "$x: "; foreach $y (keys %{$HoH{$x}}){ print "$y=$HoH{$x}{$y} "; } print "\n"; }

You can use $returnedData directly without %HoH, but it is a bit more complicated to read.
chas
(Update: A lot of replies appeared while I was writing my reply...)