- or download this
package CirculatorySystem;
...
print $nexus_6->circulatory_system->pressure;
# is the same as ...
print $nexus_6->eyes->blood_pressure;
- or download this
has [qw[ eyes ears nose mouth ]] => (is => 'rw');
around [qw[ eyes ears nose mouth ]] => sub { ... code to make accessor
+s return $self here ... }
- or download this
my @parts = qw[ eyes ears nose mouth ];
has $_ => (
is => 'rw',
predicate => "has_$_"
) foreach @parts;