📄 ch01_03.htm
字号:
<a name="lperl3-CHP-1-SECT-3.3" /><div class="sect2"><h3 class="sect2">1.3.3. Are There Any Other Kinds of Support?</h3><p>Sure; one of our favorites is the Perl Mongers. This is a worldwideassociation of Perl users' groups; see <a href="http://www.pm.org/">http://www.pm.org/</a> for more information.There's probably a group near you with an expert or someone whoknows an expert. If there's no group, you can easily start one.</p><p>Of course, for the first line of support, you shouldn't neglectthe <a name="INDEX-40" /><a name="INDEX-41" />documentation. Besides the<a name="INDEX-42" />manpages<a href="#FOOTNOTE-26">[26]</a> themselves,Perl's documentation includes the voluminous FAQ (FrequentlyAsked Questions) and many tutorials.</p><blockquote class="footnote"><a name="FOOTNOTE-26" /><p>[26]The term <em class="firstterm">manpages </em>is a Unix-ism meaningdocumentation. If you're not on a Unix system, the manpages forPerl should be available via your system's native documentationsystem. If you can't find them anywhere else, the manpages areavailable directly on CPAN.</p> </blockquote><p>Another authoritative source is the book <em class="emphasis">ProgrammingPerl</em><a name="INDEX-43" />, commonly known as "the<a name="INDEX-44" />Camel book"because of its cover animal (just as this book has come to be knownas "the <a name="INDEX-45" />Llama book"). The Camel book containsthe complete reference information, some tutorial stuff, and a bunchof miscellaneous information about Perl. There's also aseparate pocket-sized <a name="INDEX-46" />quick reference to Perl (by Johan<a name="INDEX-47" />Vromans)that's handy to keep at hand (or in your pocket).</p><p>If you need to ask a question of someone, there are<a name="INDEX-48" />newsgroups on Usenet and any number of<a name="INDEX-49" /><a name="INDEX-50" />mailing lists.<a href="#FOOTNOTE-27">[27]</a> Atany hour of the day or night, there's a Perl expert awake insome timezone answering questions on Usenet's Perlnewsgroups -- the sun never sets on the Perl empire. This meansthat if you ask a question, you'll often get an answer withinminutes. If you didn't check the documentation and FAQ first,you'll get flamed within minutes.</p><blockquote class="footnote"><a name="FOOTNOTE-27" /><p>[27]Many mailing lists are listed at <a href="http://lists.perl.org">http://lists.perl.org</a>.</p> </blockquote><p>We generally recommend the newsgroup<em class="emphasis">comp.lang.perl.moderated</em><a name="INDEX-51" />, where (as the name implies) amoderator will check over your question before posting it. Ifthere's something wrong with your question, you'll stillget flamed of course, but it's a small, private flame in emailrather than a big public one in a newsgroup.<a href="#FOOTNOTE-28">[28]</a> But formost questions, you'll get an answer back within the hour. Justtry getting that level of support from your favorite software vendorfor free!</p><blockquote class="footnote"> <a name="FOOTNOTE-28" /><p>[28]Ofcourse, we're joking here. Unless you've done somethingamazingly boneheaded, the moderators are all kind, polite, helpfulfolks, who will gently point you in the direction of the informationyou need, with just enough flame to remind you to be more carefulnext time. Don't be afraid to ask.</p> </blockquote><p>The official Perl newsgroups on Usenet are located in the<em class="emphasis">comp.lang.perl.*</em> part of the hierarchy. As ofthis writing, there are five of them, but they change from time totime. You (or whoever is in charge of Perl at your site) shouldgenerally subscribe to <em class="emphasis">comp.lang.perl.announce,</em>which is a low-volume newsgroup just for important announcementsabout Perl, including especially any security-related announcements.Ask your local expert if you need help with Usenet.</p><p>Also, a few web communities have sprung up around Perl discussions.One very popular one, known as The <a name="INDEX-52" /><a name="INDEX-53" />Perl Monastery (<a href="http://www.perlmonks.org">http://www.perlmonks.org</a>) has seen quite abit of participation from many Perl book and column authors,including at least one of the authors of this book.</p><p>If you find yourself needing a support contract for Perl, there are anumber of firms who are willing to charge as much as you'dlike. In most cases, these other support avenues will take care ofyou for free.<a name="INDEX-54" /> <a name="INDEX-55" /> </p></div><a name="lperl3-CHP-1-SECT-3.4" /><div class="sect2"><h3 class="sect2">1.3.4. What If I Find a Bug in Perl?</h3><p>The first thing to do when you find a bug is to check thedocumentation<a href="#FOOTNOTE-29">[29]</a> again.<a href="#FOOTNOTE-30">[30]</a> Perl has so many special features andexceptions to rules that you may have discovered a feature, not abug. Also, check that you don't have an older version of Perl;maybe you found something that's been fixed in a more recentversion.</p><blockquote class="footnote"> <a name="FOOTNOTE-29" /><p>[29]Even Larry admits to consulting thedocumentation from time to time.</p> </blockquote><blockquote class="footnote"><a name="FOOTNOTE-30" /><p>[30]Maybe even twice or three times. Many times, we've goneinto the documentation looking to explain a particular unexpectedbehavior and found some new little nuance that ends up on a slide orin a column.</p> </blockquote><p>Once you're 99% certain that you've found a real bug, askaround. Ask someone at work, at your local Perl Mongers'meeting, or at a Perl conference. Chances are, it's<em class="emphasis">still</em> a feature, not a bug.</p><p>Once you're 100% certain that you've found a real bug,cook up a test case (if you haven't done so already). The idealtest case is a tiny self-contained program that any Perl user couldrun to see the same (mis-)behavior as you've found. Onceyou've got a test case that clearly shows the bug, use the<i class="command">perlbug</i><a name="INDEX-56" /> <a name="INDEX-57" /><a name="INDEX-58" /><a name="INDEX-59" /><a name="INDEX-60" /> utility (which comes with Perl) toreport the bug. That will normally send email from you to the Perldevelopers, so don't use <i class="command">perlbug</i> untilyou've got your test case ready.</p><p>Once you've sent off your bug report, if you've doneeverything right, it's not unusual to get a response withinminutes. Typically, you can apply a simple patch and get right backto work. Of course, you may (at worst) get no response at all; thePerl developers are under no obligation to even read your bugreports. But all of us love Perl, so nobody likes to let a bug escapeour notice.</p></div><hr width="684" align="left" /><div class="navbar"><table width="684" border="0"><tr><td align="left" valign="top" width="228"><a href="ch01_02.htm"><img alt="Previous" border="0" src="../gifs/txtpreva.gif" /></a></td><td align="center" valign="top" width="228"><a href="index.htm"><img alt="Home" border="0" src="../gifs/txthome.gif" /></a></td><td align="right" valign="top" width="228"><a href="ch01_04.htm"><img alt="Next" border="0" src="../gifs/txtnexta.gif" /></a></td></tr><tr><td align="left" valign="top" width="228">1.2. What Does "Perl" Stand For?</td><td align="center" valign="top" width="228"><a href="index/index.htm"><img alt="Book Index" border="0" src="../gifs/index.gif" /></a></td><td align="right" valign="top" width="228">1.4. How Do I Make a Perl Program?</td></tr></table></div><hr width="684" align="left" /><img alt="Library Navigation Links" border="0" src="../gifs/navbar.gif" usemap="#library-map" /><p><p><font size="-1"><a href="copyrght.htm">Copyright © 2002</a> O'Reilly & Associates. All rights reserved.</font></p><map name="library-map"><area shape="rect" coords="1,0,85,94" href="../index.htm"><area shape="rect" coords="86,1,178,103" href="../lwp/index.htm"><area shape="rect" coords="180,0,265,103" href="../lperl/index.htm"><area shape="rect" coords="267,0,353,105" href="../perlnut/index.htm"><area shape="rect" coords="354,1,446,115" href="../prog/index.htm"><area shape="rect" coords="448,0,526,132" href="../tk/index.htm"><area shape="rect" coords="528,1,615,119" href="../cookbook/index.htm"><area shape="rect" coords="617,0,690,135" href="../pxml/index.htm"></map></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -