http://www.perlmonks.org?node_id=576309


in reply to Re: HASH keys preserve class ?
in thread HASH keys preserve class ?

ikegami,
To be pedantic about it, hash key values can only be scalars. A reference happens to be a scalar so a hash value can get to anything you can reference. Since you can reference just about anything under the sun, you can can get to just about anything.

To be less pedantic, I thought I heard someone say there was an XS way to make hash keys non-string but I know nothing about it beyond a vague recollection.

Cheers - L~R