package BigThing; sub new { shift; my $self={ field1 => 0, field2 => "", field3 => 0x0 }; bless $self,"BigThing"; return $self; } | | Other methods | 1; #### | | hand waving here... | my $thing = new BigThing(); $thing->field1(10); printf "%s\n",$thing->field2;