in reply to Trying to understand Perl Objects
In general what people do is put all those other things into the hash...
my $foo = bless( { name => 'Bo', color => 'white', complex_behaviors => [ { name => 'one' }, { name => 'two' }, { name => 'three' } ], }, 'Sheep' );
|
---|
In Section
Seekers of Perl Wisdom