perlmeditation
apotheon
<p>I'm feeling a little contemplative today, mostly about very simple subjects. One topic that came to mind is this: What are the top ten things every Perl hacker should know? I encourage you all to offer your suggestions, but I've decided to provide a list of my own as a starting point.</p>
<p><ol>
<li>Perl is not an acronym</li>
<li>there is more than one way to do it</li>
<li>how and why to use warnings and use strict</li>
<li>how and why to use taint checking</li>
<li>how and why to use lexical scoping for variables</li>
<li>how saved Perl source code files should be named</li>
<li>how to use CPAN</li>
<li>how and why to use perldoc and [|PerlMonks]</li>
<li>don't reinvent the wheel: how and why to use subroutines, modules, and libraries</li>
<li>how and why to use regexen</li>
</ol></p>
<p>I suspect the bit about naming Perl files will be considered less important by others here, but it seems quite important to me to know what file extensions to use for different types of source files, to use names without spaces and special characters in them, and to use at least vaguely descriptive names.</p>
<p>This is meant to be a list of generally important bits of knowledge, like quirks of the language, resources available, and important aspects of Perl culture. It's not intended to include things like ingenious snippets of code or what O'Reilly books about Perl are best (though these, too, are worthy subjects to contemplate).</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-397229">
<p align="left"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="left"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000"><tr><td align="left"><font color="#ffffff" size="2"><b>print substr("Just another Perl hacker", 0, -2);</b></font></td></tr></table></td>
<td align="right">- <font color="#0000ff">a</font><font color="#3355ff">p</font><font color="#6688ff">o</font><font color="#99bbff">t</font><font color="#99bbff">h</font><font color="#6688ff">e</font><font color="#3355ff">o</font><font color="#0000ff">n</font>
<br />
[http://ccd.apotheon.org|CopyWrite] Chad Perrin</td></tr></table></p>
</div></div>