Is it possible to assign a array reference as a value to a hash key ?
You can use array references as keys in just the way you might guess that you can... the limitation is that you can't retrieve the key and then dereference it. This is because hash keys are strings by definition and when you use a reference as a key, it stringifies the reference first.
You probably want Tie::Refhash to do what you want to do.
In reply to Re: Is it possible to assign an array reference to a value in hash
by sauoq
in thread Is it possible to assign an array reference to a value in hash
by snape
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |