Next Pseudohashes 6

The key idea

        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]



Next 6