[ale] Perl coding style

Jerald Sheets questy at gmail.com
Fri Jan 18 12:01:49 EST 2013


The last person I'm going to complain about their coding style, Chris, is you....  Or... maybe Bruce.  :D


On Jan 18, 2013, at 11:43 AM, Chris Fowler <cfowler at outpostsentinel.com> wrote:

> On 01/18/2013 10:00 AM, Brandon Wood wrote:
>>   Not sure if you're trolling or looking to have a more specific
>> discussion as "most perl coders" is a bit of a broad statement. There
>> are a LOT of Perl coders, many with different styles. So far as the
>> language itself is concerned you can do it different ways; though there
>> are suggested good practices.
>> 
> 
> Here is one thing I do that may make only perl people mad.
> 
> a.  All executable code is in subs.
> 
> b.  The bottom of the program looks like this:
> 
> sub main {
> ....
> return X;
> }
> 
> exit main;
> 
> # vi: set ts=2 sw=2: #
> 
> 
> So the only executable code outside of a sub is 'exit main;'
> 
> :)
> 
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo



More information about the Ale mailing list