in reply to Dynamically naming and creating hashes

A fancy way to initialize %foo = (key => 0) and %bar = (key => 0).
$$_{key} = 0 for qw(foo bar);
Again, symbolic references are dangerous. Try to avoid them.