in reply to Scalar ref acting as simulatenous hash and array?
ormy $name= $obj->('name');
So you don't have to remember what order they "are" in, since you specify the order you want them in. And you can pull just the ones you want.my @list= $obj->(qw/name address serial zip/);
I suppose an actual hash could do the same thing with a slice.
—John
|
|---|