This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[inseparable changes from match from perl-5.003_93 to perl-5.003_94]
[perl5.git] / pod / perlfaq2.pod
CommitLineData
68dc0745 1=head1 NAME
2
3perlfaq2 - Obtaining and Learning about Perl ($Revision: 1.13 $)
4
5=head1 DESCRIPTION
6
7This section of the FAQ answers questions about where to find
8source and documentation for Perl, support and training, and
9related matters.
10
11=head2 What machines support Perl? Where do I get it?
12
13The standard release of Perl (the one maintained by the perl
14development team) is distributed only in source code form. You can
15find this at http://www.perl.com/CPAN/src/latest.tar.gz, which is a
16gzipped archive in POSIX tar format. This source builds with no
17porting whatsoever on most Unix systems (Perl's native environment),
18as well as Plan 9, VMS, QNX, OS/2, and the Amiga.
19
20Although it's rumored that the (imminent) 5.004 release may build
21on Windows NT, this is yet to be proven. Binary distributions
22for 32-bit Microsoft systems and for Apple systems can be found
23http://www.perl.com/CPAN/ports/ directory. Because these are not part of
24the standard distribution, they may and in fact do differ from the base
25Perl port in a variety of ways. You'll have to check their respective
26release notes to see just what the differences are. These differences
27can be either positive (e.g. extensions for the features of the particular
28platform that are not supported in the source release of perl) or negative
29(e.g. might be based upon a less current source release of perl).
30
31A useful FAQ for Win32 Perl users is
32http://www.endcontsw.com/people/evangelo/Perl_for_Win32_FAQ.html
33
34=head2 How can I get a binary version of Perl?
35
36If you don't have a C compiler because for whatever reasons your
37vendor did not include one with your system, the best thing to do is
38grab a binary version of gcc from the net and use that to compile perl
39with. CPAN only has binaries for systems that are terribly hard to
40get free compilers for, not for Unix systems.
41
42=head2 I copied the Perl binary from one machine to another, but scripts don't work.
43
44That's probably because you forgot libraries, or library paths differ.
45You really should build the whole distribution on the machine it will
46eventually live on, and then type C<make install>. Most other
47approaches are doomed to failure.
48
49One simple way to check that things are in the right place is to print out
50the hard-coded @INC which perl is looking for.
51
52 perl -e 'print join("\n",@INC)'
53
54If this command lists any paths which don't exist on your system, then you
55may need to move the appropriate libraries to these locations, or create
56symlinks, aliases, or shortcuts appropriately.
57
58=head2 I grabbed the sources and tried to compile but gdbm/dynamic loading/malloc/linking/... failed. How do I make it work?
59
60Read the F<INSTALL> file, which is part of the source distribution.
61It describes in detail how to cope with most idiosyncracies that the
62Configure script can't work around for any given system or
63architecture.
64
65=head2 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean?
66
67CPAN stands for Comprehensive Perl Archive Network, a huge archive
68replicated on dozens of machines all over the world. CPAN contains
69source code, non-native ports, documentation, scripts, and many
70third-party modules and extensions, designed for everything from
71commercial database interfaces to keyboard/screen control to web
72walking and CGI scripts. The master machine for CPAN is
73ftp://ftp.funet.fi/pub/languages/perl/CPAN/, but you can use the
74address http://www.perl.com/CPAN/CPAN.html to fetch a copy from a
75"site near you". See http://www.perl.com/CPAN (without a slash at the
76end) for how this process works.
77
78CPAN/path/... is a naming convention for files available on CPAN
79sites. CPAN indicates the base directory of a CPAN mirror, and the
80rest of the path is the path from that directory to the file. For
81instance, if you're using ftp://ftp.funet.fi/pub/languages/perl/CPAN
82as your CPAN site, the file CPAN/misc/japh file is downloadable as
83ftp://ftp.funet.fi/pub/languages/perl/CPAN/misc/japh .
84
85Considering that there are hundreds of existing modules in the
86archive, one probably exists to do nearly anything you can think of.
87Current categories under CPAN/modules/by-category/ include perl core
88modules; development support; operating system interfaces; networking,
89devices, and interprocess communication; data type utilities; database
90interfaces; user interfaces; interfaces to other languages; filenames,
91file systems, and file locking; internationalization and locale; world
92wide web support; server and daemon utilities; archiving and
93compression; image manipulation; mail and news; control flow
94utilities; filehandle and I/O; Microsoft Windows modules; and
95miscellaneous modules.
96
97=head2 Is there an ISO or ANSI certified version of Perl?
98
99Certainly not. Larry expects that he'll be certified before Perl is.
100
101=head2 Where can I get information on Perl?
102
103The complete Perl documentation is available with the perl
104distribution. If you have perl installed locally, you probably have
105the documentation installed as well: type C<man perl> if you're on a
106system resembling Unix. This will lead you to other important man
107pages. If you're not on a Unix system, access to the documentation
108will be different; for example, it might be only in HTML format. But
109all proper perl installations have fully-accessible documentation.
110
111You might also try C<perldoc perl> in case your system doesn't
112have a proper man command, or it's been misinstalled. If that doesn't
113work, try looking in /usr/local/lib/perl5/pod for documentation.
114
115If all else fails, consult the CPAN/doc directory, which contains the
116complete documentation in various formats, including native pod,
117troff, html, and plain text. There's also a web page at
118http://www.perl.com/perl/info/documentation.html that might help.
119
120It's also worth noting that there's a PDF version of the complete
121documentation for perl available in the CPAN/authors/id/BMIDD
122directory.
123
124Many good books have been written about Perl -- see the section below
125for more details.
126
127=head2 What are the Perl newsgroups on USENET? Where do I post questions?
128
129The now defunct comp.lang.perl newsgroup has been superseded by the
130following groups:
131
132 comp.lang.perl.announce Moderated announcement group
133 comp.lang.perl.misc Very busy group about Perl in general
134 comp.lang.perl.modules Use and development of Perl modules
135 comp.lang.perl.tk Using Tk (and X) from Perl
136
137 comp.infosystems.www.authoring.cgi Writing CGI scripts for the Web.
138
139There is also USENET gateway to the mailing list used by the crack
140Perl development team (perl5-porters) at
141news://genetics.upenn.edu/perl.porters-gw/ .
142
143=head2 Where should I post source code?
144
145You should post source code to whichever group is most appropriate,
146but feel free to cross-post to comp.lang.perl.misc. If you want to
147cross-post to alt.sources, please make sure it follows their posting
148standards, including setting the Followup-To header line to NOT
149include alt.sources; see their FAQ for details.
150
151=head2 Perl Books
152
153A number books on Perl and/or CGI programming are available. A few of
154these are good, some are ok, but many aren't worth your money. Tom
155Christiansen maintains a list of these books, some with extensive
156reviews, at http://www.perl.com/perl/critiques/index.html.
157
158The incontestably definitive reference book on Perl, written by the
159creator of Perl and his apostles, is now in its second edition and
160fourth printing.
161
162 Programming Perl (the "Camel Book"):
163 Authors: Larry Wall, Tom Christiansen, and Randal Schwartz
164 ISBN 1-56592-149-6 (English)
165 ISBN 4-89052-384-7 (Japanese)
166 (French and German translations in progress)
167
168Note that O'Reilly books are color-coded: turquoise (some would call
169it teal) covers indicate perl5 coverage, while magenta (some would
170call it pink) covers indicate perl4 only. Check the cover color
171before you buy!
172
173What follows is a list of the books that the FAQ authors found personally
174useful. Your mileage may (but, we hope, probably won't) vary.
175
176If you're already a hard-core systems programmer, then the Camel Book
177just might suffice for you to learn Perl from. But if you're not,
178check out the "Llama Book". It currently doesn't cover perl5, but the
1792nd edition is nearly done and should be out by summer 97:
180
181 Learning Perl (the Llama Book):
182 Author: Randal Schwartz, with intro by Larry Wall
183 ISBN 1-56592-042-2 (English)
184 ISBN 4-89502-678-1 (Japanese)
185 ISBN 2-84177-005-2 (French)
186 ISBN 3-930673-08-8 (German)
187
188Another stand-out book in the turquoise O'Reilly Perl line is the "Hip
189Owls" book. It covers regular expressions inside and out, with quite a
190bit devoted exclusively to Perl:
191
192 Mastering Regular Expressions (the Cute Owls Book):
193 Author: Jeffrey Friedl
194 ISBN 1-56592-257-3
195
196You can order any of these books from O'Reilly & Associates,
1971-800-998-9938. Local/overseas is 1-707-829-0515. If you can locate
198an O'Reilly order form, you can also fax to 1-707-829-0104. See
199http://www.ora.com/ on the Web.
200
201Recommended Perl books that are not from O'Reilly are the following:
202
203 Cross-Platform Perl, (for Unix and Windows NT)
204 Author: Eric F. Johnson
205 ISBN: 1-55851-483-X
206
207 How to Set up and Maintain a World Wide Web Site, (2nd edition)
208 Author: Lincoln Stein, M.D., Ph.D.
209 ISBN: 0-201-63462-7
210
211 CGI Programming in C & Perl,
212 Author: Thomas Boutell
213 ISBN: 0-201-42219-0
214
215Note that some of these address specific application areas (e.g. the
216Web) and are not general-purpose programming books.
217
218=head2 Perl in Magazines
219
220The Perl Journal is the first and only magazine dedicated to Perl.
221It is published (on paper, not online) quarterly by Jon Orwant
222(orwant@tpj.com), editor. Subscription information is at http://tpj.com
223or via email to subscriptions@tpj.com.
224
225Beyond this, two other magazines that frequently carry high-quality articles
226on Perl are Web Techniques (see http://www.webtechniques.com/) and
227Unix Review (http://www.unixreview.com/).
228
229=head2 Perl on the Net: FTP and WWW Access
230
231To get the best (and possibly cheapest) performance, pick a site from
232the list below and use it to grab the complete list of mirror sites.
233>From there you can find the quickest site for you. Remember, the
234following list is I<not> the complete list of CPAN mirrors.
235
236 http://www.perl.com/CPAN (redirects to another mirror)
237 http://www.perl.org/CPAN
238 ftp://ftp.funet.fi/pub/languages/perl/CPAN/
239 http://www.cs.ruu.nl/pub/PERL/CPAN/
240 ftp://ftp.cs.colorado.edu/pub/perl/CPAN/
241
242=head2 What mailing lists are there for perl?
243
244Most of the major modules (tk, CGI, libwww-perl) have their own
245mailing lists. Consult the documentation that came with the module for
246subscription information. The following are a list of mailing lists
247related to perl itself.
248
249If you subscribe to a mailing list, it behooves you to know how to
250unsubscribe from it. Strident pleas to the list itself to get you off
251will not be favorably received.
252
253=over 4
254
255=item MacPerl
256
257There is a mailing list for discussing Macintosh Perl. Contact
258"mac-perl-request@iis.ee.ethz.ch".
259
260Also see Matthias Neeracher's (the creator and maintainer of MacPerl)
261webpage at http://www.iis.ee.ethz.ch/~neeri/macintosh/perl.html for
262many links to interesting MacPerl sites, and the applications/MPW
263tools, precompiled.
264
265=item Perl5-Porters
266
267The core development team have a mailing list for discussing fixes and
268changes to the language. Send mail to
269"perl5-porters-request@perl.org" with help in the body of the message
270for information on subscribing.
271
272=item NTPerl
273
274This list is used to discuss issues involving Win32 Perl 5 (Windows NT
275and Win95). Subscribe by emailing ListManager@ActiveWare.com with the
276message body:
277
278 subscribe Perl-Win32-Users
279
280The list software, also written in perl, will automatically determine
281your address, and subscribe you automatically. To unsubscribe, email
282the following in the message body to the same address like so:
283
284 unsubscribe Perl-Win32-Users
285
286You can also check http://www.activeware.com/ and select "Mailing Lists"
287to join or leave this list.
288
289=item Perl-Packrats
290
291Discussion related to archiving of perl materials, particularly the
292Comprehensive PerlArchive Network (CPAN). Subscribe by emailing
293majordomo@cis.ufl.edu:
294
295 subscribe perl-packrats
296
297The list software, also written in perl, will automatically determine
298your address, and subscribe you automatically. To unsubscribe, simple
299prepend the same command with an "un", and mail to the same address
300like so:
301
302 unsubscribe perl-packrats
303
304=back
305
306=head2 Archives of comp.lang.perl.misc
307
308Have you tried Deja News or Alta Vista?
309
310ftp.cis.ufl.edu:/pub/perl/comp.lang.perl.*/monthly has an almost
311complete collection dating back to 12/89 (missing 08/91 through
31212/93). They are kept as one large file for each month.
313
314You'll probably want more a sophisticated query and retrieval mechanism
315than a file listing, preferably one that allows you to retrieve
316articles using a fast-access indices, keyed on at least author, date,
317subject, thread (as in "trn") and probably keywords. The best
318solution the FAQ authors know of is the MH pick command, but it is
319very slow to select on 18000 articles.
320
321If you have, or know where can be found, the missing sections, please
322let perlfaq-suggestions@perl.com know.
323
324=head2 Perl Training
325
326While some large training companies offer their own courses on Perl,
327you may prefer to contact individuals near and dear to the heart of
328Perl development. Two well-known members of the Perl development team
329who offer such things are Tom Christiansen <perl-classes@perl.com>
330and Randal Schwartz <perl-training-info@stonehenge.com>, plus their
331respective minions, who offer a variety of professional tutorials
332and seminars on Perl. These courses include large public seminars,
333private corporate training, and fly-ins to Colorado and Oregon.
334See http://www.perl.com/perl/info/training.html for more details.
335
336=head2 Where can I buy a commercial version of Perl?
337
338In a sense, Perl already I<is> commercial software: It has a licence
339that you can grab and carefully read to your manager. It is
340distributed in releases and comes in well-defined packages. There is a
341very large user community and an extensive literature. The
342comp.lang.perl.* newsgroups and several of the mailing lists provide
343free answers to your questions in near real-time. Perl has
344traditionally been supported by Larry, dozens of software designers
345and developers, and thousands of programmers, all working for free
346to create a useful thing to make life better for everyone.
347
348However, these answers may not suffice for managers who require a
349purchase order from a company whom they can sue should anything go
350wrong. Or maybe they need very serious hand-holding and contractual
351obligations. Shrink-wrapped CDs with perl on them are available from
352several sources if that will help.
353
354Or you can purchase a real support contract. Although Cygnus historically
355provided this service, they no longer sell support contracts for Perl.
356Instead, the Paul Ingram Group will be taking up the slack through The
357Perl Clinic. The following is a commercial from them:
358
359"Do you need professional support for Perl and/or Oraperl? Do you need
360a support contract with defined levels of service? Do you want to pay
361only for what you need?
362
363"The Paul Ingram Group has provided quality software development and
364support services to some of the world's largest corporations for ten
365years. We are now offering the same quality support services for Perl
366at The Perl Clinic. This service is led by Tim Bunce, an active perl
367porter since 1994 and well known as the author and maintainer of the
368DBI, DBD::Oracle, and Oraperl modules and author/co-maintainer of The
369Perl 5 Module List. We also offer Oracle users support for Perl5
370Oraperl and related modules (which Oracle is planning to ship as part
371of Oracle Web Server 3). 20% of the profit from our Perl support work
372will be donated to The Perl Institute."
373
374For more information, contact the The Perl Clinic:
375
376 Tel: +44 1483 424424
377 Fax: +44 1483 419419
378 Web: http://www.perl.co.uk/
379 Email: perl-support-info@perl.co.uk or Tim.Bunce@ig.co.uk
380
381=head2 Where do I send bug reports?
382
383If you are reporting a bug in the perl interpreter or the modules
384shipped with perl, use the perlbug program in the perl distribution or
385email your report to perlbug@perl.com.
386
387If you are posting a bug with a non-standard port (see the answer to
388"What platforms is Perl available for?"), a binary distribution, or a
389non-standard module (such as Tk, CGI, etc), then please see the
390documentation that came with it to determine the correct place to post
391bugs.
392
393Read the perlbug man page (perl5.004 or later) for more information.
394
395=head2 What is perl.com? perl.org? The Perl Institute?
396
397perl.org is the official vehicle for The Perl Institute. The motto of
398TPI is "helping people help Perl help people" (or something like
399that). It's a non-profit organization supporting development,
400documentation, and dissemination of perl. Current directors of TPI
401include Larry Wall, Tom Christiansen, and Randal Schwartz, whom you
402may have heard of somewhere else around here.
403
404The perl.com domain is Tom Christiansen's domain. He created it as a
405public service long before perl.org came about. It's the original PBS
406of the Perl world, a clearinghouse for information about all things
407Perlian, accepting no paid advertisements, glossy gifs, or (gasp!)
408java applets on its pages.
409
410=head2 How do I learn about object-oriented Perl programming?
411
412L<perltoot> (distributed with 5.004 or later) is a good place to start.
413Also, L<perlobj>, L<perlref>, and L<perlmod> are useful references,
414while L<perlbot> has some excellent tips and tricks.
415
416=head1 AUTHOR AND COPYRIGHT
417
418Copyright (c) 1997 Tom Christiansen and Nathan Torkington.
419All rights reserved. See L<perlfaq> for distribution information.