Next | Pseudohashes | 3 |
Hashes are commonly used for objects
Keys are member data names, values are member data
if ($self->{TYPE} eq 'octopus') { $self->{tentacles} = 8; $self->{hearts} = 3; $self->{favorite_food} = 'crab cakes'; }
Every member data access requires a hash lookup
Next | 3 |