in reply to How would I write this using map?
push @$ref2array, map $_, sort keys %{$obj->things}; [download]
push @$ref2array, sort keys %{$obj->things}; [download]