perlquestion
Anonymous Monk
<p>Hi!</p>
<p>I'm in the middle of learning OO Perl. I'm wondering if there exist any conventions about naming methods, attributes, instance variables etc. My question isn't OO Perl specific and could also be extended to functional Perl.</p>
<p>Given a subroutine/method to get a value I saw the following versions:</p>
<code>
getValue {
...
}
</code>
<code>
get_value {
...
}
</code>
<code>
getvalue {
...
}
</code>
<p>Also with named attribute there are different versions:</p>
<code>
my $foo = new foo(
AttributeName => "name",
attribute_name => "name",
attributename => "name",
);
</code>
<p>The same applies to variable names, package/class names, etc.</p>
<p>Are there any specific suggetions, guidelines or conventions for this?</p>
<p>Thanks, Kurt</p>
50