in reply to Re: How to create a hash whose values are undef?
in thread How to create a hash whose values are undef?

But what if I want @keys to be the keys in a second-level hash, like so:

$hash = {'foo' => { 'key1 => undef, 'key2' => undef, ...
I am using a hash ref here, but I don't think that should make too much of a difference.

Replies are listed 'Best First'.
Re^3: How to create a hash whose values are undef?
by GrandFather (Saint) on Jul 06, 2009 at 03:10 UTC