in reply to Problem with hash dereferencing from DBI example

keys %{ %$ParamValues, %$ParamTypes };

That doesn't make any sense. %{ ... } dereferences a hash reference, but %$ParamValues, %$ParamTypes is not one.

Maybe for (keys %$ParamValues), (keys %$ParamTypes) is meant instead?

Replies are listed 'Best First'.
Re^2: Problem with hash dereferencing from DBI example
by mje (Curate) on Mar 08, 2011 at 14:06 UTC

    Thanks moritz. I got confused and was thinking the {} was turning it into a reference when in fact the {} is part of the %{}. So it would need to be %{{%$ParamValues, %$ParamTypes}} if it was to work as I thought. The 1/8 confused me - I couldn't see where the 8 came from.