You could of course tie your hash to return values that allow for something similar.
is almost as good. Unfortunately, this falls down on assignment. I can't think of any good way to do it (
Also, you'd have to do some nasty business about garbage collection. You wouldn't want to keep an entire hash around just because you still have one element of the hash.