<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Quoting Damian Conway's "Perl Best Practices" from O'Reilly (A MUST-OWN for any serious Perl programmer):</div><div><br></div><div>"<span style="font-family: Times; font-size: 11pt; ">All that matters is that you adopt a single, coherent style; one that works for your entire programming team.
And, having agreed upon that style, that you then apply it consistently across all your development."</span></div>
                
        
        
                <div class="page" title="Page 21">
                        <div class="layoutArea">
                                <div class="column"><p><font face="Times" size="4"> Even though he goes on to make the most </font><font face="Times"><span style="font-size: 15px;">minuscule</span></font><font face="Times" size="4"> of recommendations regarding large groups of text to minor ones, this remains his overarching corollary. As an addition, the following also should be folowed with great respect:</font><br></p><p><font face="Times" size="4"><br></font></p><p><font face="Times" size="4">"</font><span style="font-family: Times; font-size: 11pt; ">Always code as if the guy who ends up maintaining your code will be a violent psychopath
who knows where you live."</span></p>
                
        
        
                <div class="page" title="Page 19">
                        <div class="layoutArea">
                                <div class="column"><p><span style="font-size: 11.000000pt; font-family: 'Times'"> :)<br></span></p>
                                </div>
                        </div>
                </div>
                                </div>
                        </div>
                </div><div><br></div><div>I do a simulated "main()" style section at the top (right under global variable declarations) that executes all the subsequent subroutines I'm calling. The subroutines below that are in no particular order, but are heavily documented in-line. My module for Xymon to read tape status on a Sun StorageTek Library is a good example: <a href="https://github.com/cvquesty/Xymon/blob/master/library.pl">https://github.com/cvquesty/Xymon/blob/master/library.pl</a></div><div><br></div><div>A few little suggestions from my time with Perl:</div><div><br></div><div>The Perl Support vim plugin is AWESOME!</div><div><a href="http://www.vim.org/scripts/script.php?script_id=556">http://www.vim.org/scripts/script.php?script_id=556</a></div><div><br></div><div>You just edit your template to match whatever sort of files you're working on and to reflect your personal info, etc. When you "vi foo.pl", it'll automagically build the flower box at the top, put in the preprocessor directive, personalize the code, and everything. My link above at GitHub reflects the nice output from that tool.</div><div><br></div><div><br></div><div>That's all for now.</div><div><br></div><div><br></div><div>--Jer</div><div><br></div><div><br></div><br><div><div>On Jan 18, 2013, at 10:21 AM, Jim Kinney <<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">It's required. Not just a "style thing".<br><br>Alternatively, put subroutines in external files and call them in from the top of the script. My Perl is getting quite rusty but I think it's <br><br>require:<file> ;<br>
<br><div class="gmail_quote">On Fri, Jan 18, 2013 at 10:12 AM, Geoffrey Myers <span dir="ltr"><<a href="mailto:lists@serioustechnology.com" target="_blank">lists@serioustechnology.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto"><div>Not trolling. I didn't want to taint the discussion by specifying my particular style. It does appear to me that most perl code I encounter has subroutines before the main code. <div class="im"><br>
<br><div>--</div><div>From my iP<span>hone</span></div><div>Geoffrey Myers</div></div></div><div><div class="h5"><div><br>On Jan 18, 2013, at 10:00 AM, Brandon Wood <<a href="mailto:woody@2143.net" target="_blank">woody@2143.net</a>> wrote:<br>
<br></div><blockquote type="cite"><div> 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.</div>
<div><br></div><div> And yes, Perl is still alive and well and in a period of renaissance these last few years. There is an active Perl Mongers group in Atlanta that meets the first Thursday of the month. All are welcome, see <a href="http://atlanta.pm.org/" target="_blank">http://atlanta.pm.org</a> for more information.</div>
<div><br></div><div>--</div><div>Woody<br><br><div class="gmail_quote">On Fri, Jan 18, 2013 at 9:46 AM, Sam Rakowski <span dir="ltr"><<a href="mailto:devnull@iamdevnull.info" target="_blank">devnull@iamdevnull.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Perl is eternal.<br>
Sent via BlackBerry<br>
<div>_______________________________________________<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/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/listinfo</a><br>
</div></blockquote></div><br></div>
</blockquote><blockquote type="cite"><span>_______________________________________________</span><br><span>Ale mailing list</span><br><span><a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a></span><br>
<span><a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a></span><br><span>See JOBS, ANNOUNCE and SCHOOLS lists at</span><br><span><a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a></span><br>
</blockquote></div></div></div><br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/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/listinfo</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br><i><i><i><i><br></i></i></i>Every time you stop a school, you will have to build a jail. What you
gain at one end you lose at the other. It's like feeding a dog on his
own tail. It won't fatten the dog.<br>
- Speech 11/23/1900 Mark Twain<br><i><i><i><i><br><a href="http://electjimkinney.org/" target="_blank">http://electjimkinney.org</a><br><a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br>
</i></i></i>
_______________________________________________<br>Ale mailing list<br><a href="mailto:Ale@ale.org">Ale@ale.org</a><br>http://mail.ale.org/mailman/listinfo/ale<br>See JOBS, ANNOUNCE and SCHOOLS lists at<br>http://mail.ale.org/mailman/listinfo<br></i></i></blockquote></div><br></body></html>