in reply to Re^2: Object Oriented Perl - very basic guide
in thread Object Oriented Perl - very basic guide

I've also had the discussion about whether you should have separate 'set' and 'get' methods, or whether having a single one is 'ok'. E.g.

my $status_code = $object -> status; $object -> status ( "new_status" );

I'm of the opinion that separating them out is good - static attributes you might think you can update in this way, because the paradigm of method calls is the same - as the method call you expect already exists, then it's only at run time you'll find that it doesn't allow changing, where if 'set_state' isn't present it's a bit more obvious.