note
rjt
<p>As others before me have mentioned, all three options are valid syntax, but you probably already knew that. So, it comes down to matters of style. Where style is concerned, <a href="http://perldoc.perl.org/perlstyle.html">perlstyle</a> is the go-to document.</p>
<p>perlstyle doesn't specify this case. However, a couple of quotes hint that parenthesis might be slightly preferred:</p>
<blockquote>Function and method names seem to work best as all lowercase. E.g., <code>$obj->as_string()</code> .</blockquote>
<p>This example uses parens.</p>
<blockquote>Note that function names are considered more readable with parentheses after their name, that is <code>function()</code> .</blockquote>
<p>This quote comes from the Pod doc section, where functions are referred to in English (or whatever) text, so it doesn't exactly refer to the code itself.</p>
<p>The bottom line, the golden rule with any stylistic choice, is <b>be consistent.</b> If you (or someone else) starts coding with or without parenthesis, keep doing it.</p>
994002
994002