Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / man / man1 / perlfaq1.1
CommitLineData
920dae64
AT
1.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
2.\"
3.\" Standard preamble:
4.\" ========================================================================
5.de Sh \" Subsection heading
6.br
7.if t .Sp
8.ne 5
9.PP
10\fB\\$1\fR
11.PP
12..
13.de Sp \" Vertical space (when we can't use .PP)
14.if t .sp .5v
15.if n .sp
16..
17.de Vb \" Begin verbatim text
18.ft CW
19.nf
20.ne \\$1
21..
22.de Ve \" End verbatim text
23.ft R
24.fi
25..
26.\" Set up some character translations and predefined strings. \*(-- will
27.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28.\" double quote, and \*(R" will give a right double quote. | will give a
29.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
30.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
31.\" expand to `' in nroff, nothing in troff, for use with C<>.
32.tr \(*W-|\(bv\*(Tr
33.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34.ie n \{\
35. ds -- \(*W-
36. ds PI pi
37. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
39. ds L" ""
40. ds R" ""
41. ds C` ""
42. ds C' ""
43'br\}
44.el\{\
45. ds -- \|\(em\|
46. ds PI \(*p
47. ds L" ``
48. ds R" ''
49'br\}
50.\"
51.\" If the F register is turned on, we'll generate index entries on stderr for
52.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53.\" entries marked with X<> in POD. Of course, you'll have to process the
54.\" output yourself in some meaningful fashion.
55.if \nF \{\
56. de IX
57. tm Index:\\$1\t\\n%\t"\\$2"
58..
59. nr % 0
60. rr F
61.\}
62.\"
63.\" For nroff, turn off justification. Always turn off hyphenation; it makes
64.\" way too many mistakes in technical documents.
65.hy 0
66.if n .na
67.\"
68.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69.\" Fear. Run. Save yourself. No user-serviceable parts.
70. \" fudge factors for nroff and troff
71.if n \{\
72. ds #H 0
73. ds #V .8m
74. ds #F .3m
75. ds #[ \f1
76. ds #] \fP
77.\}
78.if t \{\
79. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80. ds #V .6m
81. ds #F 0
82. ds #[ \&
83. ds #] \&
84.\}
85. \" simple accents for nroff and troff
86.if n \{\
87. ds ' \&
88. ds ` \&
89. ds ^ \&
90. ds , \&
91. ds ~ ~
92. ds /
93.\}
94.if t \{\
95. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101.\}
102. \" troff and (daisy-wheel) nroff accents
103.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110.ds ae a\h'-(\w'a'u*4/10)'e
111.ds Ae A\h'-(\w'A'u*4/10)'E
112. \" corrections for vroff
113.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115. \" for low resolution devices (crt and lpr)
116.if \n(.H>23 .if \n(.V>19 \
117\{\
118. ds : e
119. ds 8 ss
120. ds o a
121. ds d- d\h'-1'\(ga
122. ds D- D\h'-1'\(hy
123. ds th \o'bp'
124. ds Th \o'LP'
125. ds ae ae
126. ds Ae AE
127.\}
128.rm #[ #] #H #V #F C
129.\" ========================================================================
130.\"
131.IX Title "PERLFAQ1 1"
132.TH PERLFAQ1 1 "2006-01-07" "perl v5.8.8" "Perl Programmers Reference Guide"
133.SH "NAME"
134perlfaq1 \- General Questions About Perl ($Revision: 1.19 $, $Date: 2005/12/31 00:54:37 $)
135.SH "DESCRIPTION"
136.IX Header "DESCRIPTION"
137This section of the \s-1FAQ\s0 answers very general, high-level questions
138about Perl.
139.Sh "What is Perl?"
140.IX Subsection "What is Perl?"
141Perl is a high-level programming language with an eclectic heritage
142written by Larry Wall and a cast of thousands. It derives from the
143ubiquitous C programming language and to a lesser extent from sed,
144awk, the Unix shell, and at least a dozen other tools and languages.
145Perl's process, file, and text manipulation facilities make it
146particularly well-suited for tasks involving quick prototyping, system
147utilities, software tools, system management tasks, database access,
148graphical programming, networking, and world wide web programming.
149These strengths make it especially popular with system administrators
150and \s-1CGI\s0 script authors, but mathematicians, geneticists, journalists,
151and even managers also use Perl. Maybe you should, too.
152.Sh "Who supports Perl? Who develops it? Why is it free?"
153.IX Subsection "Who supports Perl? Who develops it? Why is it free?"
154The original culture of the pre-populist Internet and the deeply-held
155beliefs of Perl's author, Larry Wall, gave rise to the free and open
156distribution policy of perl. Perl is supported by its users. The
157core, the standard Perl library, the optional modules, and the
158documentation you're reading now were all written by volunteers. See
159the personal note at the end of the \s-1README\s0 file in the perl source
160distribution for more details. See perlhist (new as of 5.005)
161for Perl's milestone releases.
162.PP
163In particular, the core development team (known as the Perl Porters)
164are a rag-tag band of highly altruistic individuals committed to
165producing better software for free than you could hope to purchase for
166money. You may snoop on pending developments via the archives at
167http://www.xray.mpe.mpg.de/mailing\-lists/perl5\-porters/
168and http://archive.develooper.com/perl5\-porters@perl.org/
169or the news gateway nntp://nntp.perl.org/perl.perl5.porters or
170its web interface at http://nntp.perl.org/group/perl.perl5.porters ,
171or read the faq at http://simon\-cozens.org/writings/p5p\-faq ,
172or you can subscribe to the mailing list by sending
173perl5\-porters\-request@perl.org a subscription request
174(an empty message with no subject is fine).
175.PP
176While the \s-1GNU\s0 project includes Perl in its distributions, there's no
177such thing as \*(L"\s-1GNU\s0 Perl\*(R". Perl is not produced nor maintained by the
178Free Software Foundation. Perl's licensing terms are also more open
179than \s-1GNU\s0 software's tend to be.
180.PP
181You can get commercial support of Perl if you wish, although for most
182users the informal support will more than suffice. See the answer to
183\&\*(L"Where can I buy a commercial version of perl?\*(R" for more information.
184.Sh "Which version of Perl should I use?"
185.IX Subsection "Which version of Perl should I use?"
186(contributed by brian d foy)
187.PP
188There is often a matter of opinion and taste, and there isn't any
189one answer that fits anyone. In general, you want to use either
190the current stable release, or the stable release immediately prior
191to that one. Currently, those are perl5.8.x and perl5.6.x, respectively.
192.PP
193Beyond that, you have to consider several things and decide which
194is best for you.
195.IP "\(bu" 4
196If things aren't broken, upgrading perl may break
197them (or at least issue new warnings).
198.IP "\(bu" 4
199The latest versions of perl have more bug fixes.
200.IP "\(bu" 4
201The Perl community is geared toward supporting the most
202recent releases, so you'll have an easier time finding help for
203those.
204.IP "\(bu" 4
205Versions prior to perl5.004 had serious security problems with
206buffer overflows, and in some cases have \s-1CERT\s0 advisories (for
207instance, http://www.cert.org/advisories/CA\-1997\-17.html ).
208.IP "\(bu" 4
209The latest versions are probably the least deployed and
210widely tested, so you may want to wait a few months after their
211release and see what problems others have if you are risk averse.
212.IP "\(bu" 4
213The immediate, previous releases (i.e. perl5.6.x ) are usually
214maintained for a while, although not at the same level as the
215current releases.
216.IP "\(bu" 4
217No one is actively supporting perl4.x. Five years ago it was
218a dead camel carcass (according to this document). Now it's barely
219a skeleton as its whitewashed bones have fractured or eroded.
220.IP "\(bu" 4
221There is no perl6.x for the next couple of years. Stay tuned,
222but don't worry that you'll have to change major versions of Perl
223soon (i.e. before 2006).
224.IP "\(bu" 4
225There are really two tracks of perl development: a
226maintenance version and an experimental version. The
227maintenance versions are stable, and have an even number
228as the minor release (i.e. perl5.8.x, where 8 is the minor
229release). The experimental versions may include features that
230don't make it into the stable versions, and have an odd number
231as the minor release (i.e. perl5.9.x, where 9 is the minor release).
232.Sh "What are perl4, perl5, or perl6?"
233.IX Subsection "What are perl4, perl5, or perl6?"
234(contributed by brian d foy)
235.PP
236In short, perl4 is the past, perl5 is the present, and perl6 is the
237future.
238.PP
239The number after perl (i.e. the 5 after perl5) is the major release
240of the perl interpreter as well as the version of the language. Each
241major version has significant differences that earlier versions cannot
242support.
243.PP
244The current major release of Perl is perl5, and was released in 1994.
245It can run scripts from the previous major release, perl4 (March 1991),
246but has significant differences. It introduced the concept of references,
247complex data structures, and modules. The perl5 interpreter was a
248complete re-write of the previous perl sources.
249.PP
250Perl6 is the next major version of Perl, but it's still in development
251in both its syntax and design. The work started in 2002 and is still
252ongoing. Many of the most interesting features have shown up in the
253latest versions of perl5, and some perl5 modules allow you to use some
254perl6 syntax in your programs. You can learn more about perl6 at
255http://dev.perl.org/perl6/ .
256.PP
257See perlhist for a history of Perl revisions.
258.Sh "What is Ponie?"
259.IX Subsection "What is Ponie?"
260At The O'Reilly Open Source Software Convention in 2003, Artur
261Bergman, Fotango, and The Perl Foundation announced a project to
262run perl5 on the Parrot virtual machine named Ponie. Ponie stands for
263Perl On New Internal Engine. The Perl 5.10 language implementation
264will be used for Ponie, and there will be no language level
265differences between perl5 and ponie. Ponie is not a complete rewrite
266of perl5.
267.PP
268For more details, see http://www.poniecode.org/
269.Sh "What is perl6?"
270.IX Subsection "What is perl6?"
271At The Second O'Reilly Open Source Software Convention, Larry Wall
272announced Perl6 development would begin in earnest. Perl6 was an oft
273used term for Chip Salzenberg's project to rewrite Perl in \*(C+ named
274Topaz. However, Topaz provided valuable insights to the next version
275of Perl and its implementation, but was ultimately abandoned.
276.PP
277If you want to learn more about Perl6, or have a desire to help in
278the crusade to make Perl a better place then peruse the Perl6 developers
279page at http://dev.perl.org/perl6/ and get involved.
280.PP
281Perl6 is not scheduled for release yet, and Perl5 will still be supported
282for quite awhile after its release. Do not wait for Perl6 to do whatever
283you need to do.
284.PP
285\&\*(L"We're really serious about reinventing everything that needs reinventing.\*(R"
286\&\-\-Larry Wall
287.Sh "How stable is Perl?"
288.IX Subsection "How stable is Perl?"
289Production releases, which incorporate bug fixes and new functionality,
290are widely tested before release. Since the 5.000 release, we have
291averaged only about one production release per year.
292.PP
293Larry and the Perl development team occasionally make changes to the
294internal core of the language, but all possible efforts are made toward
295backward compatibility. While not quite all perl4 scripts run flawlessly
296under perl5, an update to perl should nearly never invalidate a program
297written for an earlier version of perl (barring accidental bug fixes
298and the rare new keyword).
299.Sh "Is Perl difficult to learn?"
300.IX Subsection "Is Perl difficult to learn?"
301No, Perl is easy to start learning\*(--and easy to keep learning. It looks
302like most programming languages you're likely to have experience
303with, so if you've ever written a C program, an awk script, a shell
304script, or even a \s-1BASIC\s0 program, you're already partway there.
305.PP
306Most tasks only require a small subset of the Perl language. One of
307the guiding mottos for Perl development is \*(L"there's more than one way
308to do it\*(R" (\s-1TMTOWTDI\s0, sometimes pronounced \*(L"tim toady\*(R"). Perl's
309learning curve is therefore shallow (easy to learn) and long (there's
310a whole lot you can do if you really want).
311.PP
312Finally, because Perl is frequently (but not always, and certainly not by
313definition) an interpreted language, you can write your programs and test
314them without an intermediate compilation step, allowing you to experiment
315and test/debug quickly and easily. This ease of experimentation flattens
316the learning curve even more.
317.PP
318Things that make Perl easier to learn: Unix experience, almost any kind
319of programming experience, an understanding of regular expressions, and
320the ability to understand other people's code. If there's something you
321need to do, then it's probably already been done, and a working example is
322usually available for free. Don't forget the new perl modules, either.
323They're discussed in Part 3 of this \s-1FAQ\s0, along with \s-1CPAN\s0, which is
324discussed in Part 2.
325.Sh "How does Perl compare with other languages like Java, Python, \s-1REXX\s0, Scheme, or Tcl?"
326.IX Subsection "How does Perl compare with other languages like Java, Python, REXX, Scheme, or Tcl?"
327Favorably in some areas, unfavorably in others. Precisely which areas
328are good and bad is often a personal choice, so asking this question
329on Usenet runs a strong risk of starting an unproductive Holy War.
330.PP
331Probably the best thing to do is try to write equivalent code to do a
332set of tasks. These languages have their own newsgroups in which you
333can learn about (but hopefully not argue about) them.
334.PP
335Some comparison documents can be found at http://www.perl.com/doc/FMTEYEWTK/versus/
336if you really can't stop yourself.
337.Sh "Can I do [task] in Perl?"
338.IX Subsection "Can I do [task] in Perl?"
339Perl is flexible and extensible enough for you to use on virtually any
340task, from one-line file-processing tasks to large, elaborate systems.
341For many people, Perl serves as a great replacement for shell scripting.
342For others, it serves as a convenient, high-level replacement for most of
343what they'd program in low-level languages like C or \*(C+. It's ultimately
344up to you (and possibly your management) which tasks you'll use Perl
345for and which you won't.
346.PP
347If you have a library that provides an \s-1API\s0, you can make any component
348of it available as just another Perl function or variable using a Perl
349extension written in C or \*(C+ and dynamically linked into your main
350perl interpreter. You can also go the other direction, and write your
351main program in C or \*(C+, and then link in some Perl code on the fly,
352to create a powerful application. See perlembed.
353.PP
354That said, there will always be small, focused, special-purpose
355languages dedicated to a specific problem domain that are simply more
356convenient for certain kinds of problems. Perl tries to be all things
357to all people, but nothing special to anyone. Examples of specialized
358languages that come to mind include prolog and matlab.
359.Sh "When shouldn't I program in Perl?"
360.IX Subsection "When shouldn't I program in Perl?"
361When your manager forbids it\*(--but do consider replacing them :\-).
362.PP
363Actually, one good reason is when you already have an existing
364application written in another language that's all done (and done
365well), or you have an application language specifically designed for a
366certain task (e.g. prolog, make).
367.PP
368For various reasons, Perl is probably not well-suited for real-time
369embedded systems, low-level operating systems development work like
370device drivers or context-switching code, complex multi-threaded
371shared-memory applications, or extremely large applications. You'll
372notice that perl is not itself written in Perl.
373.PP
374The new, native-code compiler for Perl may eventually reduce the
375limitations given in the previous statement to some degree, but understand
376that Perl remains fundamentally a dynamically typed language, not
377a statically typed one. You certainly won't be chastised if you don't
378trust nuclear-plant or brain-surgery monitoring code to it. And Larry
379will sleep easier, too\*(--Wall Street programs not withstanding. :\-)
380.ie n .Sh "What's the difference between ""perl"" and ""Perl""?"
381.el .Sh "What's the difference between ``perl'' and ``Perl''?"
382.IX Subsection "What's the difference between perl and Perl?"
383One bit. Oh, you weren't talking \s-1ASCII\s0? :\-) Larry now uses \*(L"Perl\*(R" to
384signify the language proper and \*(L"perl\*(R" the implementation of it,
385i.e. the current interpreter. Hence Tom's quip that \*(L"Nothing but perl
386can parse Perl.\*(R" You may or may not choose to follow this usage. For
387example, parallelism means \*(L"awk and perl\*(R" and \*(L"Python and Perl\*(R" look
388\&\s-1OK\s0, while \*(L"awk and Perl\*(R" and \*(L"Python and perl\*(R" do not. But never
389write \*(L"\s-1PERL\s0\*(R", because perl is not an acronym, apocryphal
390folklore and post-facto expansions notwithstanding.
391.Sh "Is it a Perl program or a Perl script?"
392.IX Subsection "Is it a Perl program or a Perl script?"
393Larry doesn't really care. He says (half in jest) that \*(L"a script is
394what you give the actors. A program is what you give the audience.\*(R"
395.PP
396Originally, a script was a canned sequence of normally interactive
397commands\*(--that is, a chat script. Something like a \s-1UUCP\s0 or \s-1PPP\s0 chat
398script or an expect script fits the bill nicely, as do configuration
399scripts run by a program at its start up, such \fI.cshrc\fR or \fI.ircrc\fR,
400for example. Chat scripts were just drivers for existing programs,
401not stand-alone programs in their own right.
402.PP
403A computer scientist will correctly explain that all programs are
404interpreted and that the only question is at what level. But if you
405ask this question of someone who isn't a computer scientist, they might
406tell you that a \fIprogram\fR has been compiled to physical machine code
407once and can then be run multiple times, whereas a \fIscript\fR must be
408translated by a program each time it's used.
409.PP
410Perl programs are (usually) neither strictly compiled nor strictly
411interpreted. They can be compiled to a byte-code form (something of a
412Perl virtual machine) or to completely different languages, like C or
413assembly language. You can't tell just by looking at it whether the
414source is destined for a pure interpreter, a parse-tree interpreter,
415a byte-code interpreter, or a native-code compiler, so it's hard to give
416a definitive answer here.
417.PP
418Now that \*(L"script\*(R" and \*(L"scripting\*(R" are terms that have been seized by
419unscrupulous or unknowing marketeers for their own nefarious purposes,
420they have begun to take on strange and often pejorative meanings,
421like \*(L"non serious\*(R" or \*(L"not real programming\*(R". Consequently, some Perl
422programmers prefer to avoid them altogether.
423.Sh "What is a \s-1JAPH\s0?"
424.IX Subsection "What is a JAPH?"
425These are the \*(L"just another perl hacker\*(R" signatures that some people
426sign their postings with. Randal Schwartz made these famous. About
427100 of the earlier ones are available from
428http://www.cpan.org/misc/japh .
429.Sh "Where can I get a list of Larry Wall witticisms?"
430.IX Subsection "Where can I get a list of Larry Wall witticisms?"
431Over a hundred quips by Larry, from postings of his or source code,
432can be found at http://www.cpan.org/misc/lwall\-quotes.txt.gz .
433.Sh "How can I convince my sysadmin/supervisor/employees to use version 5/5.6.1/Perl instead of some other language?"
434.IX Subsection "How can I convince my sysadmin/supervisor/employees to use version 5/5.6.1/Perl instead of some other language?"
435If your manager or employees are wary of unsupported software, or
436software which doesn't officially ship with your operating system, you
437might try to appeal to their self\-interest. If programmers can be
438more productive using and utilizing Perl constructs, functionality,
439simplicity, and power, then the typical manager/supervisor/employee
440may be persuaded. Regarding using Perl in general, it's also
441sometimes helpful to point out that delivery times may be reduced
442using Perl compared to other languages.
443.PP
444If you have a project which has a bottleneck, especially in terms of
445translation or testing, Perl almost certainly will provide a viable,
446quick solution. In conjunction with any persuasion effort, you
447should not fail to point out that Perl is used, quite extensively, and
448with extremely reliable and valuable results, at many large computer
449software and hardware companies throughout the world. In fact,
450many Unix vendors now ship Perl by default. Support is usually
451just a news-posting away, if you can't find the answer in the
452\&\fIcomprehensive\fR documentation, including this \s-1FAQ\s0.
453.PP
454See http://www.perl.org/advocacy/ for more information.
455.PP
456If you face reluctance to upgrading from an older version of perl,
457then point out that version 4 is utterly unmaintained and unsupported
458by the Perl Development Team. Another big sell for Perl5 is the large
459number of modules and extensions which greatly reduce development time
460for any given task. Also mention that the difference between version
4614 and version 5 of Perl is like the difference between awk and \*(C+.
462(Well, \s-1OK\s0, maybe it's not quite that distinct, but you get the idea.)
463If you want support and a reasonable guarantee that what you're
464developing will continue to work in the future, then you have to run
465the supported version. As of December 2003 that means running either
4665.8.2 (released in November 2003), or one of the older releases like
4675.6.2 (also released in November 2003; a maintenance release to let perl
4685.6 compile on newer systems as 5.6.1 was released in April 2001) or
4695.005_03 (released in March 1999),
470although 5.004_05 isn't that bad if you \fBabsolutely\fR need such an old
471version (released in April 1999) for stability reasons.
472Anything older than 5.004_05 shouldn't be used.
473.PP
474Of particular note is the massive bug hunt for buffer overflow
475problems that went into the 5.004 release. All releases prior to
476that, including perl4, are considered insecure and should be upgraded
477as soon as possible.
478.PP
479In August 2000 in all Linux distributions a new security problem was
480found in the optional 'suidperl' (not built or installed by default)
481in all the Perl branches 5.6, 5.005, and 5.004, see
482http://www.cpan.org/src/5.0/sperl\-2000\-08\-05/
483Perl maintenance releases 5.6.1 and 5.8.0 have this security hole closed.
484Most, if not all, Linux distribution have patches for this
485vulnerability available, see http://www.linuxsecurity.com/advisories/ ,
486but the most recommendable way is to upgrade to at least Perl 5.6.1.
487.SH "AUTHOR AND COPYRIGHT"
488.IX Header "AUTHOR AND COPYRIGHT"
489Copyright (c) 1997\-2006 Tom Christiansen, Nathan Torkington, and
490other authors as noted. All rights reserved.
491.PP
492This documentation is free; you can redistribute it and/or modify it
493under the same terms as Perl itself.
494.PP
495Irrespective of its distribution, all code examples here are in the public
496domain. You are permitted and encouraged to use this code and any
497derivatives thereof in your own programs for fun or for profit as you
498see fit. A simple comment in the code giving credit to the \s-1FAQ\s0 would
499be courteous but is not required.