http://www.perlmonks.org?node_id=187612


in reply to Re: Object Oriented Programming in Perl.
in thread Object Oriented Programming in Perl.

I think it's conventional to put an underscore before your object variable names too, eg _beverage.

Erm, that's only for private properties, the rest are not prefixed with an underbar.
From perltoot:

Occasionally you'll see method names beginning or ending with an underscore or two. This marking is a convention indicating that the methods are private to that class alone and sometimes to its closest acquaintances, its immediate subclasses. But this distinction is not enforced by Perl itself. It's up to the programmer to behave.

I feel your statement is misleading. New developers could use underbar incorrectly in their own code, and using other folks modules.

--

Brother Frankus.

¤