perlfaq2.pod
来自「MSYS在windows下模拟了一个类unix的终端」· POD 代码 · 共 533 行 · 第 1/2 页
POD
533 行
=head1 NAMEperlfaq2 - Obtaining and Learning about Perl ($Revision: 1.32 $, $Date: 1999/10/14 18:46:09 $)=head1 DESCRIPTIONThis section of the FAQ answers questions about where to findsource and documentation for Perl, support, andrelated matters.=head2 What machines support Perl? Where do I get it?The standard release of Perl (the one maintained by the perldevelopment team) is distributed only in source code form. Youcan find this at http://www.cpan.org/src/latest.tar.gz , whichis in a standard Internet format (a gzipped archive in POSIX tar format).Perl builds and runs on a bewildering number of platforms. Virtuallyall known and current Unix derivatives are supported (Perl's nativeplatform), as are other systems like VMS, DOS, OS/2, Windows,QNX, BeOS, OS X, MPE/iX and the Amiga.Binary distributions for some proprietary platforms, includingApple systems, can be found http://www.cpan.org/ports/ directory.Because these are not part of the standard distribution, they mayand in fact do differ from the base Perl port in a variety of ways.You'll have to check their respective release notes to see justwhat the differences are. These differences can be either positive(e.g. extensions for the features of the particular platform thatare not supported in the source release of perl) or negative (e.g.might be based upon a less current source release of perl).=head2 How can I get a binary version of Perl?If you don't have a C compiler because your vendor for whateverreasons did not include one with your system, the best thing to do isgrab a binary version of gcc from the net and use that to compile perlwith. CPAN only has binaries for systems that are terribly hard toget free compilers for, not for Unix systems.Some URLs that might help you are: http://www.cpan.org/ports/ http://language.perl.com/info/software.htmlSomeone looking for a Perl for Win16 might look to Laszlo Molnar's djgppport in http://www.cpan.org/ports/#msdos , which comes with clearinstallation instructions. A simple installation guide for MS-DOS usingIlya Zakharevich's OS/2 port is available athttp://www.cs.ruu.nl/%7Epiet/perl5dos.htmland similarly for Windows 3.1 at http://www.cs.ruu.nl/%7Epiet/perlwin3.html .=head2 I don't have a C compiler on my system. How can I compile perl?Since you don't have a C compiler, you're doomed and your vendorshould be sacrificed to the Sun gods. But that doesn't help you.What you need to do is get a binary version of gcc for your systemfirst. Consult the Usenet FAQs for your operating system forinformation on where to get such a binary version.=head2 I copied the Perl binary from one machine to another, but scripts don't work.That's probably because you forgot libraries, or library paths differ.You really should build the whole distribution on the machine it willeventually live on, and then type C<make install>. Most otherapproaches are doomed to failure.One simple way to check that things are in the right place is to print outthe hard-coded @INC that perl looks through for libraries: % perl -e 'print join("\n",@INC)'If this command lists any paths that don't exist on your system, then youmay need to move the appropriate libraries to these locations, or createsymbolic links, aliases, or shortcuts appropriately. @INC is also printed aspart of the output of % perl -VYou might also want to check outL<perlfaq8/"How do I keep my own module/library directory?">.=head2 I grabbed the sources and tried to compile but gdbm/dynamic loading/malloc/linking/... failed. How do I make it work?Read the F<INSTALL> file, which is part of the source distribution.It describes in detail how to cope with most idiosyncrasies that theConfigure script can't work around for any given system orarchitecture.=head2 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean?CPAN stands for Comprehensive Perl Archive Network, a ~700mb archivereplicated on nearly 200 machines all over the world. CPAN containssource code, non-native ports, documentation, scripts, and manythird-party modules and extensions, designed for everything fromcommercial database interfaces to keyboard/screen control to webwalking and CGI scripts. The master web site for CPAN ishttp://www.cpan.org/ and there is the CPAN Multiplexer athttp://www.perl.com/CPAN/CPAN.html which will choose a mirror near youvia DNS. See http://www.perl.com/CPAN (without a slash at theend) for how this process works. Also, http://mirror.cpan.org/has a nice interface to the http://www.cpan.org/MIRRORED.BYmirror directory.See the CPAN FAQ at http://www.cpan.org/misc/cpan-faq.html foranswers to the most frequently asked questions about CPANincluding how to become a mirror.CPAN/path/... is a naming convention for files available on CPANsites. CPAN indicates the base directory of a CPAN mirror, and therest of the path is the path from that directory to the file. Forinstance, if you're using ftp://ftp.funet.fi/pub/languages/perl/CPANas your CPAN site, the file CPAN/misc/japh is downloadable asftp://ftp.funet.fi/pub/languages/perl/CPAN/misc/japh .Considering that there are close to two thousand existing modules inthe archive, one probably exists to do nearly anything you can think of.Current categories under CPAN/modules/by-category/ include Perl coremodules; development support; operating system interfaces; networking,devices, and interprocess communication; data type utilities; databaseinterfaces; user interfaces; interfaces to other languages; filenames,file systems, and file locking; internationalization and locale; worldwide web support; server and daemon utilities; archiving andcompression; image manipulation; mail and news; control flowutilities; filehandle and I/O; Microsoft Windows modules; andmiscellaneous modules.See http://www.cpan.org/modules/00modlist.long.html orhttp://search.cpan.org/ for a more complete list of modules by category.=head2 Is there an ISO or ANSI certified version of Perl?Certainly not. Larry expects that he'll be certified before Perl is.=head2 Where can I get information on Perl?The complete Perl documentation is available with the Perl distribution.If you have Perl installed locally, you probably have the documentationinstalled as well: type C<man perl> if you're on a system resembling Unix.This will lead you to other important man pages, including how to set your$MANPATH. If you're not on a Unix system, access to the documentationwill be different; for example, documentation might only be in HTML format. Allproper Perl installations have fully-accessible documentation.You might also try C<perldoc perl> in case your system doesn'thave a proper man command, or it's been misinstalled. If that doesn'twork, try looking in /usr/local/lib/perl5/pod for documentation.If all else fails, consult http://perldoc.cpan.org/ orhttp://www.perldoc.com/ both offer the complete documentationin html format.Many good books have been written about Perl--see the section belowfor more details.Tutorial documents are included in current or upcoming Perl releasesinclude L<perltoot> for objects or L<perlboot> for a beginner'sapproach to objects, L<perlopentut> for file opening semantics,L<perlreftut> for managing references, L<perlretut> for regularexpressions, L<perlthrtut> for threads, L<perldebtut> for debugging,and L<perlxstut> for linking C and Perl together. There may be moreby the time you read this. The following URLs might also be ofassistance: http://perldoc.cpan.org/ http://www.perldoc.com/ http://reference.perl.com/query.cgi?tutorials http://bookmarks.cpan.org/search.cgi?cat=Training%2FTutorials=head2 What are the Perl newsgroups on Usenet? Where do I post questions?The now defunct comp.lang.perl newsgroup has been superseded by thefollowing groups: comp.lang.perl.announce Moderated announcement group comp.lang.perl.misc Very busy group about Perl in general comp.lang.perl.moderated Moderated discussion group comp.lang.perl.modules Use and development of Perl modules comp.lang.perl.tk Using Tk (and X) from Perl comp.infosystems.www.authoring.cgi Writing CGI scripts for the Web.There is also Usenet gateway to the mailing list used by the crackPerl development team (perl5-porters) atnews://news.perl.com/perl.porters-gw/ .=head2 Where should I post source code?You should post source code to whichever group is most appropriate, butfeel free to cross-post to comp.lang.perl.misc. If you want to cross-postto alt.sources, please make sure it follows their posting standards,including setting the Followup-To header line to NOT include alt.sources;see their FAQ (http://www.faqs.org/faqs/alt-sources-intro/) for details.If you're just looking for software, first use Google(http://www.google.com), Deja (http://www.deja.com), andCPAN Search (http://search.cpan.org). This is faster and moreproductive than just posting a request.=head2 Perl BooksA number of books on Perl and/or CGI programming are available. A few ofthese are good, some are OK, but many aren't worth your money. TomChristiansen maintains a list of these books, some with extensivereviews, at http://www.perl.com/perl/critiques/index.html .The incontestably definitive reference book on Perl, written bythe creator of Perl, is now (July 2000) in its third edition: Programming Perl (the "Camel Book"): by Larry Wall, Tom Christiansen, and Jon Orwant 0-596-00027-8 [3rd edition July 2000] http://www.oreilly.com/catalog/pperl3/ (English, translations to several languages are also available)The companion volume to the Camel containing thousandsof real-world examples, mini-tutorials, and complete programs is: The Perl Cookbook (the "Ram Book"): by Tom Christiansen and Nathan Torkington, with Foreword by Larry Wall ISBN 1-56592-243-3 [1st Edition August 1998] http://perl.oreilly.com/cookbook/If you're already a hard-core systems programmer, then the Camel Bookmight suffice for you to learn Perl from. If you're not, check out Learning Perl (the "Llama Book"): by Randal Schwartz and Tom Christiansen with Foreword by Larry Wall ISBN 1-56592-284-0 [2nd Edition July 1997] http://www.oreilly.com/catalog/lperl2/Despite the picture at the URL above, the second edition of "LlamaBook" really has a blue cover and was updated for the 5.004 releaseof Perl. Various foreign language editions are available, includingI<Learning Perl on Win32 Systems> (the "Gecko Book").If you're not an accidental programmer, but a more serious and possiblyeven degreed computer scientist who doesn't need as much hand-holding aswe try to provide in the Llama or its defurred cousin the Gecko, pleasecheck out the delightful book, I<Perl: The Programmer's Companion>,written by Nigel Chapman.Addison-Wesley (http://www.awlonline.com/) and Manning(http://www.manning.com/) are also publishers of some fine Perl bookssuch as Object Oriented Programming with Perl by Damian Conway andNetwork Programming with Perl by Lincoln Stein.An excellent technical book discounter is Bookpool athttp://www.bookpool.com/ where a 30% discount or more is not unusual.What follows is a list of the books that the FAQ authors found personallyuseful. Your mileage may (but, we hope, probably won't) vary.Recommended books on (or mostly on) Perl follow.=over 4=item References Programming Perl by Larry Wall, Tom Christiansen, and Jon Orwant ISBN 0-596-00027-8 [3rd edition July 2000] http://www.oreilly.com/catalog/pperl3/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?