my %hash = %{foo(@args_to_foo)}; # or, with a method that returns a hashref my %hash = %{$object->foo};