source: for-distributions/trunk/bin/windows/perl/lib/Pod/perlfaq2.pod@ 14489

Last change on this file since 14489 was 14489, checked in by oranfry, 17 years ago

upgrading to perl 5.8

File size: 21.0 KB
Line 
1=head1 NAME
2
3perlfaq2 - Obtaining and Learning about Perl ($Revision: 1.39 $, $Date: 2006/01/08 14:27:07 $)
4
5=head1 DESCRIPTION
6
7This section of the FAQ answers questions about where to find
8source and documentation for Perl, support, 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
15can find this at http://www.cpan.org/src/latest.tar.gz , which
16is in a standard Internet format (a gzipped archive in POSIX tar format).
17
18Perl builds and runs on a bewildering number of platforms. Virtually
19all known and current Unix derivatives are supported (perl's native
20platform), as are other systems like VMS, DOS, OS/2, Windows,
21QNX, BeOS, OS X, MPE/iX and the Amiga.
22
23Binary distributions for some proprietary platforms, including
24Apple systems, can be found http://www.cpan.org/ports/ directory.
25Because these are not part of the standard distribution, they may
26and in fact do differ from the base perl port in a variety of ways.
27You'll have to check their respective release notes to see just
28what the differences are. These differences can be either positive
29(e.g. extensions for the features of the particular platform that
30are not supported in the source release of perl) or negative (e.g.
31might be based upon a less current source release of perl).
32
33=head2 How can I get a binary version of perl?
34
35If you don't have a C compiler because your vendor for whatever
36reasons did not include one with your system, the best thing to do is
37grab a binary version of gcc from the net and use that to compile perl
38with. CPAN only has binaries for systems that are terribly hard to
39get free compilers for, not for Unix systems.
40
41Some URLs that might help you are:
42
43 http://www.cpan.org/ports/
44 http://www.perl.com/pub/language/info/software.html
45
46Someone looking for a perl for Win16 might look to Laszlo Molnar's djgpp
47port in http://www.cpan.org/ports/#msdos , which comes with clear
48installation instructions. A simple installation guide for MS-DOS using
49Ilya Zakharevich's OS/2 port is available at
50http://www.cs.ruu.nl/%7Epiet/perl5dos.html
51and similarly for Windows 3.1 at http://www.cs.ruu.nl/%7Epiet/perlwin3.html .
52
53=head2 I don't have a C compiler. How can I build my own Perl interpreter?
54
55Since you don't have a C compiler, you're doomed and your vendor
56should be sacrificed to the Sun gods. But that doesn't help you.
57
58What you need to do is get a binary version of gcc for your system
59first. Consult the Usenet FAQs for your operating system for
60information on where to get such a binary version.
61
62=head2 I copied the perl binary from one machine to another, but scripts don't work.
63
64That's probably because you forgot libraries, or library paths differ.
65You really should build the whole distribution on the machine it will
66eventually live on, and then type C<make install>. Most other
67approaches are doomed to failure.
68
69One simple way to check that things are in the right place is to print out
70the hard-coded @INC that perl looks through for libraries:
71
72 % perl -le 'print for @INC'
73
74If this command lists any paths that don't exist on your system, then you
75may need to move the appropriate libraries to these locations, or create
76symbolic links, aliases, or shortcuts appropriately. @INC is also printed as
77part of the output of
78
79 % perl -V
80
81You might also want to check out
82L<perlfaq8/"How do I keep my own module/library directory?">.
83
84=head2 I grabbed the sources and tried to compile but gdbm/dynamic loading/malloc/linking/... failed. How do I make it work?
85
86Read the F<INSTALL> file, which is part of the source distribution.
87It describes in detail how to cope with most idiosyncrasies that the
88Configure script can't work around for any given system or
89architecture.
90
91=head2 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean?
92
93CPAN stands for Comprehensive Perl Archive Network, a ~1.2Gb archive
94replicated on nearly 200 machines all over the world. CPAN contains
95source code, non-native ports, documentation, scripts, and many
96third-party modules and extensions, designed for everything from
97commercial database interfaces to keyboard/screen control to web
98walking and CGI scripts. The master web site for CPAN is
99http://www.cpan.org/ and there is the CPAN Multiplexer at
100http://www.cpan.org/CPAN.html which will choose a mirror near you
101via DNS. See http://www.perl.com/CPAN (without a slash at the
102end) for how this process works. Also, http://mirror.cpan.org/
103has a nice interface to the http://www.cpan.org/MIRRORED.BY
104mirror directory.
105
106See the CPAN FAQ at http://www.cpan.org/misc/cpan-faq.html for
107answers to the most frequently asked questions about CPAN
108including how to become a mirror.
109
110CPAN/path/... is a naming convention for files available on CPAN
111sites. CPAN indicates the base directory of a CPAN mirror, and the
112rest of the path is the path from that directory to the file. For
113instance, if you're using ftp://ftp.funet.fi/pub/languages/perl/CPAN
114as your CPAN site, the file CPAN/misc/japh is downloadable as
115ftp://ftp.funet.fi/pub/languages/perl/CPAN/misc/japh .
116
117Considering that there are close to two thousand existing modules in
118the archive, one probably exists to do nearly anything you can think of.
119Current categories under CPAN/modules/by-category/ include Perl core
120modules; development support; operating system interfaces; networking,
121devices, and interprocess communication; data type utilities; database
122interfaces; user interfaces; interfaces to other languages; filenames,
123file systems, and file locking; internationalization and locale; world
124wide web support; server and daemon utilities; archiving and
125compression; image manipulation; mail and news; control flow
126utilities; filehandle and I/O; Microsoft Windows modules; and
127miscellaneous modules.
128
129See http://www.cpan.org/modules/00modlist.long.html or
130http://search.cpan.org/ for a more complete list of modules by category.
131
132CPAN is not affiliated with O'Reilly Media.
133
134=head2 Is there an ISO or ANSI certified version of Perl?
135
136Certainly not. Larry expects that he'll be certified before Perl is.
137
138=head2 Where can I get information on Perl?
139
140The complete Perl documentation is available with the Perl distribution.
141If you have Perl installed locally, you probably have the documentation
142installed as well: type C<man perl> if you're on a system resembling Unix.
143This will lead you to other important man pages, including how to set your
144$MANPATH. If you're not on a Unix system, access to the documentation
145will be different; for example, documentation might only be in HTML format. All
146proper perl installations have fully-accessible documentation.
147
148You might also try C<perldoc perl> in case your system doesn't
149have a proper man command, or it's been misinstalled. If that doesn't
150work, try looking in /usr/local/lib/perl5/pod for documentation.
151
152If all else fails, consult http://perldoc.perl.org/ which has the
153complete documentation in HTML and PDF format.
154
155Many good books have been written about Perl--see the section below
156for more details.
157
158Tutorial documents are included in current or upcoming Perl releases
159include L<perltoot> for objects or L<perlboot> for a beginner's
160approach to objects, L<perlopentut> for file opening semantics,
161L<perlreftut> for managing references, L<perlretut> for regular
162expressions, L<perlthrtut> for threads, L<perldebtut> for debugging,
163and L<perlxstut> for linking C and Perl together. There may be more
164by the time you read this. These URLs might also be useful:
165
166 http://perldoc.perl.org/
167 http://bookmarks.cpan.org/search.cgi?cat=Training%2FTutorials
168
169=head2 What are the Perl newsgroups on Usenet? Where do I post questions?
170
171Several groups devoted to the Perl language are on Usenet:
172
173 comp.lang.perl.announce Moderated announcement group
174 comp.lang.perl.misc High traffic general Perl discussion
175 comp.lang.perl.moderated Moderated discussion group
176 comp.lang.perl.modules Use and development of Perl modules
177 comp.lang.perl.tk Using Tk (and X) from Perl
178
179 comp.infosystems.www.authoring.cgi Writing CGI scripts for the Web.
180
181Some years ago, comp.lang.perl was divided into those groups, and
182comp.lang.perl itself officially removed. While that group may still
183be found on some news servers, it is unwise to use it, because
184postings there will not appear on news servers which honour the
185official list of group names. Use comp.lang.perl.misc for topics
186which do not have a more-appropriate specific group.
187
188There is also a Usenet gateway to Perl mailing lists sponsored by
189perl.org at nntp://nntp.perl.org , a web interface to the same lists
190at http://nntp.perl.org/group/ and these lists are also available
191under the C<perl.*> hierarchy at http://groups.google.com . Other
192groups are listed at http://lists.perl.org/ ( also known as
193http://lists.cpan.org/ ).
194
195A nice place to ask questions is the PerlMonks site,
196http://www.perlmonks.org/ , or the Perl Beginners mailing list
197http://lists.perl.org/showlist.cgi?name=beginners .
198
199Note that none of the above are supposed to write your code for you:
200asking questions about particular problems or general advice is fine,
201but asking someone to write your code for free is not very cool.
202
203=head2 Where should I post source code?
204
205You should post source code to whichever group is most appropriate, but
206feel free to cross-post to comp.lang.perl.misc. If you want to cross-post
207to alt.sources, please make sure it follows their posting standards,
208including setting the Followup-To header line to NOT include alt.sources;
209see their FAQ ( http://www.faqs.org/faqs/alt-sources-intro/ ) for details.
210
211If you're just looking for software, first use Google
212( http://www.google.com ), Google's usenet search interface
213( http://groups.google.com ), and CPAN Search ( http://search.cpan.org ).
214This is faster and more productive than just posting a request.
215
216=head2 Perl Books
217
218A number of books on Perl and/or CGI programming are available. A few
219of these are good, some are OK, but many aren't worth your money.
220There is a list of these books, some with extensive reviews, at
221http://books.perl.org/ . If you don't see your book listed here, you
222can write to [email protected] .
223
224The incontestably definitive reference book on Perl, written by
225the creator of Perl, is Programming Perl:
226
227 Programming Perl (the "Camel Book"):
228 by Larry Wall, Tom Christiansen, and Jon Orwant
229 ISBN 0-596-00027-8 [3rd edition July 2000]
230 http://www.oreilly.com/catalog/pperl3/
231 (English, translations to several languages are also available)
232
233The companion volume to the Camel containing thousands
234of real-world examples, mini-tutorials, and complete programs is:
235
236 The Perl Cookbook (the "Ram Book"):
237 by Tom Christiansen and Nathan Torkington,
238 with Foreword by Larry Wall
239 ISBN 0-596-00313-7 [2nd Edition August 2003]
240 http://www.oreilly.com/catalog/perlckbk2/
241
242If you're already a seasoned programmer, then the Camel Book might
243suffice for you to learn Perl. If you're not, check out the
244Llama book:
245
246 Learning Perl
247 by Randal L. Schwartz, Tom Phoenix, and brian d foy
248 ISBN 0-596-10105-8 [4th edition July 2005]
249 http://www.oreilly.com/catalog/learnperl4/
250
251And for more advanced information on writing larger programs,
252presented in the same style as the Llama book, continue your education
253with the Alpaca book:
254
255 Learning Perl Objects, References, and Modules (the "Alpaca Book")
256 by Randal L. Schwartz, with Tom Phoenix (foreword by Damian Conway)
257 ISBN 0-596-00478-8 [1st edition June 2003]
258 http://www.oreilly.com/catalog/lrnperlorm/
259
260If you're not an accidental programmer, but a more serious and
261possibly even degreed computer scientist who doesn't need as much
262hand-holding as we try to provide in the Llama, please check out the
263delightful book
264
265 Perl: The Programmer's Companion
266 by Nigel Chapman
267 ISBN 0-471-97563-X [1997, 3rd printing Spring 1998]
268 http://www.wiley.com/compbooks/catalog/97563-X.htm
269 http://www.wiley.com/compbooks/chapman/perl/perltpc.html (errata etc)
270
271If you are more at home in Windows the following is available
272(though unfortunately rather dated).
273
274 Learning Perl on Win32 Systems (the "Gecko Book")
275 by Randal L. Schwartz, Erik Olson, and Tom Christiansen,
276 with foreword by Larry Wall
277 ISBN 1-56592-324-3 [1st edition August 1997]
278 http://www.oreilly.com/catalog/lperlwin/
279
280Addison-Wesley ( http://www.awlonline.com/ ) and Manning
281( http://www.manning.com/ ) are also publishers of some fine Perl books
282such as I<Object Oriented Programming with Perl> by Damian Conway and
283I<Network Programming with Perl> by Lincoln Stein.
284
285An excellent technical book discounter is Bookpool at
286http://www.bookpool.com/ where a 30% discount or more is not unusual.
287
288What follows is a list of the books that the FAQ authors found personally
289useful. Your mileage may (but, we hope, probably won't) vary.
290
291Recommended books on (or mostly on) Perl follow.
292
293=over 4
294
295=item References
296
297 Programming Perl
298 by Larry Wall, Tom Christiansen, and Jon Orwant
299 ISBN 0-596-00027-8 [3rd edition July 2000]
300 http://www.oreilly.com/catalog/pperl3/
301
302 Perl 5 Pocket Reference
303 by Johan Vromans
304 ISBN 0-596-00032-4 [3rd edition May 2000]
305 http://www.oreilly.com/catalog/perlpr3/
306
307=item Tutorials
308
309 Beginning Perl
310 by James Lee
311 ISBN 1-59059-391-X [2nd edition August 2004]
312 http://apress.com/book/bookDisplay.html?bID=344
313
314 Elements of Programming with Perl
315 by Andrew L. Johnson
316 ISBN 1-884777-80-5 [1st edition October 1999]
317 http://www.manning.com/Johnson/
318
319 Learning Perl
320 by Randal L. Schwartz, Tom Phoenix, and brian d foy
321 ISBN 0-596-10105-8 [4th edition July 2005]
322 http://www.oreilly.com/catalog/learnperl4/
323
324 Learning Perl Objects, References, and Modules
325 by Randal L. Schwartz, with Tom Phoenix (foreword by Damian Conway)
326 ISBN 0-596-00478-8 [1st edition June 2003]
327 http://www.oreilly.com/catalog/lrnperlorm/
328
329=item Task-Oriented
330
331 Writing Perl Modules for CPAN
332 by Sam Tregar
333 ISBN 1-59059-018-X [1st edition Aug 2002]
334 http://apress.com/book/bookDisplay.html?bID=14
335
336 The Perl Cookbook
337 by Tom Christiansen and Nathan Torkington
338 with foreword by Larry Wall
339 ISBN 1-56592-243-3 [1st edition August 1998]
340 http://www.oreilly.com/catalog/cookbook/
341
342 Effective Perl Programming
343 by Joseph Hall
344 ISBN 0-201-41975-0 [1st edition 1998]
345 http://www.awl.com/
346
347 Real World SQL Server Administration with Perl
348 by Linchi Shea
349 ISBN 1-59059-097-X [1st edition July 2003]
350 http://apress.com/book/bookDisplay.html?bID=171
351
352=item Special Topics
353
354 Perl Best Practices
355 by Damian Conway
356 ISBN: 0-596-00173-8 [1st edition July 2005]
357 http://www.oreilly.com/catalog/perlbp/
358
359 Higher Order Perl
360 by Mark-Jason Dominus
361 ISBN: 1558607013 [1st edition March 2005]
362 http://hop.perl.plover.com/
363
364 Perl 6 Now: The Core Ideas Illustrated with Perl 5
365 by Scott Walters
366 ISBN 1-59059-395-2 [1st edition December 2004]
367 http://apress.com/book/bookDisplay.html?bID=355
368
369 Mastering Regular Expressions
370 by Jeffrey E. F. Friedl
371 ISBN 0-596-00289-0 [2nd edition July 2002]
372 http://www.oreilly.com/catalog/regex2/
373
374 Network Programming with Perl
375 by Lincoln Stein
376 ISBN 0-201-61571-1 [1st edition 2001]
377 http://www.awlonline.com/
378
379 Object Oriented Perl
380 Damian Conway
381 with foreword by Randal L. Schwartz
382 ISBN 1-884777-79-1 [1st edition August 1999]
383 http://www.manning.com/Conway/
384
385 Data Munging with Perl
386 Dave Cross
387 ISBN 1-930110-00-6 [1st edition 2001]
388 http://www.manning.com/cross
389
390 Mastering Perl/Tk
391 by Steve Lidie and Nancy Walsh
392 ISBN 1-56592-716-8 [1st edition January 2002]
393 http://www.oreilly.com/catalog/mastperltk/
394
395 Extending and Embedding Perl
396 by Tim Jenness and Simon Cozens
397 ISBN 1-930110-82-0 [1st edition August 2002]
398 http://www.manning.com/jenness
399
400 Perl Debugger Pocket Reference
401 by Richard Foley
402 ISBN 0-596-00503-2 [1st edition January 2004]
403 http://www.oreilly.com/catalog/perldebugpr/
404
405=back
406
407=head2 Which magazines have Perl content?
408
409The first (and for a long time, only) periodical devoted to All Things Perl,
410I<The Perl Journal> contains tutorials, demonstrations, case studies,
411announcements, contests, and much more. I<TPJ> has columns on web
412development, databases, Win32 Perl, graphical programming, regular
413expressions, and networking, and sponsors the Obfuscated Perl Contest
414and the Perl Poetry Contests. Beginning in November 2002, TPJ moved to a
415reader-supported monthly e-zine format in which subscribers can download
416issues as PDF documents. For more details on TPJ, see http://www.tpj.com/
417
418Beyond this, magazines that frequently carry quality articles on
419Perl are I<The Perl Review> ( http://www.theperlreview.com ),
420I<Unix Review> ( http://www.unixreview.com/ ),
421I<Linux Magazine> ( http://www.linuxmagazine.com/ ),
422and Usenix's newsletter/magazine to its members, I<login:>
423( http://www.usenix.org/ )
424
425The Perl columns of Randal L. Schwartz are available on the web at
426http://www.stonehenge.com/merlyn/WebTechniques/ ,
427http://www.stonehenge.com/merlyn/UnixReview/ , and
428http://www.stonehenge.com/merlyn/LinuxMag/ .
429
430=head2 What mailing lists are there for Perl?
431
432Most of the major modules (Tk, CGI, libwww-perl) have their own
433mailing lists. Consult the documentation that came with the module for
434subscription information.
435
436A comprehensive list of Perl related mailing lists can be found at:
437
438 http://lists.perl.org/
439
440=head2 Where are the archives for comp.lang.perl.misc?
441
442The Google search engine now carries archived and searchable newsgroup
443content.
444
445http://groups.google.com/groups?group=comp.lang.perl.misc
446
447If you have a question, you can be sure someone has already asked the
448same question at some point on c.l.p.m. It requires some time and patience
449to sift through all the content but often you will find the answer you
450seek.
451
452=head2 Where can I buy a commercial version of perl?
453
454In a real sense, perl already I<is> commercial software: it has a license
455that you can grab and carefully read to your manager. It is distributed
456in releases and comes in well-defined packages. There is a very large
457user community and an extensive literature. The comp.lang.perl.*
458newsgroups and several of the mailing lists provide free answers to your
459questions in near real-time. Perl has traditionally been supported by
460Larry, scores of software designers and developers, and myriad
461programmers, all working for free to create a useful thing to make life
462better for everyone.
463
464However, these answers may not suffice for managers who require a
465purchase order from a company whom they can sue should anything go awry.
466Or maybe they need very serious hand-holding and contractual obligations.
467Shrink-wrapped CDs with perl on them are available from several sources if
468that will help. For example, many Perl books include a distribution of perl,
469as do the O'Reilly Perl Resource Kits (in both the Unix flavor
470and in the proprietary Microsoft flavor); the free Unix distributions
471also all come with perl.
472
473=head2 Where do I send bug reports?
474
475If you are reporting a bug in the perl interpreter or the modules
476shipped with Perl, use the I<perlbug> program in the Perl distribution or
477mail your report to [email protected] or at http://rt.perl.org/perlbug/ .
478
479For Perl modules, you can submit bug reports to the Request Tracker set
480up at http://rt.cpan.org .
481
482If you are posting a bug with a non-standard port (see the answer to
483"What platforms is perl available for?"), a binary distribution, or a
484non-standard module (such as Tk, CGI, etc), then please see the
485documentation that came with it to determine the correct place to post
486bugs.
487
488Read the perlbug(1) man page (perl5.004 or later) for more information.
489
490=head2 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org?
491
492Perl.com at http://www.perl.com/ is part of the O'Reilly Network, a
493subsidiary of O'Reilly Media.
494
495The Perl Foundation is an advocacy organization for the Perl language
496which maintains the web site http://www.perl.org/ as a general
497advocacy site for the Perl language. It uses the domain to provide
498general support services to the Perl community, including the hosting
499of mailing lists, web sites, and other services. The web site
500http://www.perl.org/ is a general advocacy site for the Perl language,
501and there are many other sub-domains for special topics, such as
502
503 http://learn.perl.org/
504 http://use.perl.org/
505 http://jobs.perl.org/
506 http://lists.perl.org/
507
508Perl Mongers uses the pm.org domain for services related to Perl user
509groups, including the hosting of mailing lists and web sites. See the
510Perl user group web site at http://www.pm.org/ for more information about
511joining, starting, or requesting services for a Perl user group.
512
513http://www.cpan.org/ is the Comprehensive Perl Archive Network,
514a replicated worldwide repository of Perl software, see
515the I<What is CPAN?> question earlier in this document.
516
517=head1 AUTHOR AND COPYRIGHT
518
519Copyright (c) 1997-2006 Tom Christiansen, Nathan Torkington, and
520other authors as noted. All rights reserved.
521
522This documentation is free; you can redistribute it and/or modify it
523under the same terms as Perl itself.
524
525Irrespective of its distribution, all code examples here are in the public
526domain. You are permitted and encouraged to use this code and any
527derivatives thereof in your own programs for fun or for profit as you
528see fit. A simple comment in the code giving credit to the FAQ would
529be courteous but is not required.
Note: See TracBrowser for help on using the repository browser.