I think it's conventional to put an underscore before your object variable names too, eg _beverage.
in reply to Re: Object Oriented Programming in Perl.
in thread Object Oriented Programming in Perl.
Erm, that's only for private properties, the rest are not prefixed with an underbar.
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
I feel your statement is misleading. New developers could use underbar incorrectly in their own code, and using other folks modules.