Next | Pseudohashes | 6 |
package Critter; use fields qw(NAME TYPE size hearts likes_cookies ... pelagic tentacles is_tasty ... );
my Critter $self;
When Perl compiles $self->{TYPE}
it can pretend you wrote $self->[2]
You would get the readability of a hash object...
... with the speed and size of an array
Next | 6 |