Using a main block is fine; I&#39;ve seen it suggested many times by people I consider to be competent Perl programmers. Not sure why anyone should get mad at that. <br><br>Oh, wait, that&#39;s right, we&#39;re talking on the Internet...   :P<br>
<br><br><div class="gmail_quote">On Fri, Jan 18, 2013 at 4:45 PM, Chris Fowler <span dir="ltr">&lt;<a href="mailto:cfowler@outpostsentinel.com" target="_blank">cfowler@outpostsentinel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 01/18/2013 10:43 AM, Charles Shapiro wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Of course, it might have to do with geezer-coders (like me) who learned<br>
C first. You have to define a subroutine before you can use it in C. You<br>
can either write an explicit function prototype (e.g. &quot;int<br>
my_dog_sex(char *,int);&quot; ) before calling your function, or you can<br>
define the whole function before calling it.  This makes it more<br>
convenient to put  your functions above your main() call, as then you<br>
didn&#39;t have to type in or maintain prototype lines in addition to the<br>
functions themselves.<br>
</blockquote>
<br>
<br></div>
Yes.  My motivation for doing the main() is because it makes it much easier to figure out where the program &quot;starts&quot;.<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo</a><br>
</div></div></blockquote></div><br>