Well, the way I read this its actually wrong. In this you arent making $h{key} an alias to $s. You are making $s be an alias to $h{key}. Not the same thing.
Re-read my post. Clearly stated the other way around. The OP decides if that suits him.
You're right that Array::RefElem is the best solution. I didn't know about that module.
In reply to Re: Re: Re: Make hash key an alias
by calin
in thread Make hash key an alias
by pope
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |