<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br><br><div>--</div><div>From my iP<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">hone</span></div><div>Geoffrey Myers</div></div><div><br>On Jan 18, 2013, at 11:22 AM, Jerald Sheets &lt;<a href="mailto:questy@gmail.com">questy@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><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">&nbsp;Even though he goes on to make the most&nbsp;</font><font face="Times"><span style="font-size: 15px;">minuscule</span></font><font face="Times" size="4">&nbsp;of recommendations regarding large groups of text to minor ones, this remains his overarching&nbsp;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'">&nbsp;:)<br></span></p></div></div></div></div></div></div></div></blockquote><div><br></div>Amen....&nbsp;<br><blockquote type="cite"><div><div class="page" title="Page 21"><div class="layoutArea"><div class="column"><div class="page" title="Page 19"><div class="layoutArea"><div class="column">
                                </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. &nbsp;The subroutines below that are in no particular order, but are heavily documented in-line. &nbsp;My module for Xymon to read tape status on a Sun StorageTek Library is a good example: &nbsp;<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. &nbsp;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. &nbsp;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 &lt;<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a>&gt; 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:&lt;file&gt; ;<br>
<br><div class="gmail_quote">On Fri, Jan 18, 2013 at 10:12 AM, Geoffrey Myers <span dir="ltr">&lt;<a href="mailto:lists@serioustechnology.com" target="_blank">lists@serioustechnology.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 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.&nbsp;<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 &lt;<a href="mailto:woody@2143.net" target="_blank">woody@2143.net</a>&gt; wrote:<br>
<br></div><blockquote type="cite"><div>&nbsp; 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>&nbsp; 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">&lt;<a href="mailto:devnull@iamdevnull.info" target="_blank">devnull@iamdevnull.info</a>&gt;</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><a href="http://mail.ale.org/mailman/listinfo/ale">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">http://mail.ale.org/mailman/listinfo</a><br></i></i></blockquote></div><br></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Ale mailing list</span><br><span><a href="mailto:Ale@ale.org">Ale@ale.org</a></span><br><span><a href="http://mail.ale.org/mailman/listinfo/ale">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">http://mail.ale.org/mailman/listinfo</a></span><br></div></blockquote></body></html>