>
> > Methods and Functions (except for special cases, like AUTOLOAD) begin
> > with a verb, with words following to complete the action.
>
> I'm not sure I agree with that 'must begin with a verb' bit.  For simple
> accessors, I don't see much value in $foo->get_story over $foo->story,
> particularly, if you want to combine your get and set methods for
> attributes into one.
>

One argument for using $foo->story as get _and_ set method, instead of
get_story and set_story, is that it is used this way by mod_perl (1.x &
2.x). Also I think one method for get/set is very common to Perl and
get_/set_ comes out of C++ and Java.

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



Reply via email to