home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / perl-faq / part0 < prev    next >
Encoding:
Internet Message Format  |  1996-01-31  |  11.8 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!eru.mt.luth.se!news.kth.se!nntp.uio.no!news.cais.net!news1.radix.net!news1.radix.net!spp
  2. From: spp@psa.pencom.com
  3. Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc,comp.answers,news.answers
  4. Subject: comp.lang.perl.* FAQ 0/5 - Introduction
  5. Followup-To: poster
  6. Date: 27 Jan 1996 01:21:04 GMT
  7. Organization: Pencom Systems Administration
  8. Lines: 223
  9. Approved: news-answers-request@MIT.EDU
  10. Distribution: world
  11. Message-ID: <SPP.96Jan26202104@syrinx.hideout.com>
  12. NNTP-Posting-Host: dialin23.annex1.radix.net
  13. Xref: senator-bedfellow.mit.edu comp.lang.perl.announce:243 comp.lang.perl.misc:18987 comp.answers:16752 news.answers:63419
  14.  
  15.  
  16. Archive-name: perl-faq/part0
  17. Version: $Id: perl-intro,v 2.8 1995/05/15 15:43:59 spp Exp spp $
  18. Posting-Frequency: bi-weekly
  19. Last Edited: Thu Jan 11 00:52:58 1996 by spp (Stephen P Potter) on syrinx.psa.com
  20.  
  21. Hear ye, hear ye.  This most honourable session on Perl Frequently Asked
  22. Questions is hereby called to order.  Please stand and show your respect
  23. for those that have gone before us.  Let us honour Larry Wall*, the father
  24. of Perl who unselfishly spends vast amounts of time reviewing this document
  25. for veracity and accuracy.  Let us also honour Tom Christiansen* without
  26. whom this document would not exist.  Finally, let us collectively honour
  27. the members of comp.lang.perl.misc who have offered much advice and
  28. corrections to this list.
  29.  
  30. This article details the contents of the most Frequently Asked Questions in
  31. comp.lang.perl.misc, a Usenet newsgroup devoted to the Perl programming
  32. language.  There are five pieces following this, the general information
  33. questions in part1, part2 and part3 and the programming ones in part4 and
  34. part5. 
  35.  
  36. If this is your first exposure to Perl, please read this document and the 
  37. perl(1) man page before asking questions in comp.lang.perl.misc.  If you're
  38. using v4 perl, that page contains all you need to know (or at least enough
  39. to get started).  If you're using v5 perl, that page will show you where to
  40. look for specific information.  When we refer to perlmod(1), it means the 
  41. "perlmod" man page in section "1" of the manual, just as Foo(3pm), that
  42. means it's the "Foo" man page in section "3pm" (perl modules) of the
  43. library.  The perl install does NOT automatically install the module man
  44. pages for you, however.
  45.  
  46. Hopefully the questions herein are asked enough that considerable net
  47. bandwidth can be saved by looking here before asking.  Also, hopefully
  48. there is enough information contained here that someone who has never
  49. heard of Perl can read this and at least have some sort of idea as to what
  50. Perl is.
  51.  
  52. Some questions in this group aren't really about Perl, but rather about
  53. system-specific issues.  You might also consult the Most Frequently Asked
  54. Questions list in comp.unix.questions for answers to this type of question.
  55.  
  56. The current version of perl is 5.001, perl 5.000 emerged into the world on
  57. 16 October, 1994.  The previous non-beta version was 4.036 (version 4,
  58. patchlevel 36).  Many of these questions were written for perl4, however a
  59. lot of perl5 information has also been added.  Perl5 only features will be
  60. clearly marked as such, so as not to cause confusion for those still using
  61. perl4.  You should upgrade to perl5 as soon as possible though (see below).
  62.  
  63. This list was initially written, and still hacked upon, by Tom
  64. Christiansen*.  However, due to his erratic schedule, it is currently
  65. maintained by Stephen P Potter*.  First person singular pronouns, when not
  66. in quoted postings, generally are Tom talking.  
  67.  
  68. This document, and all its parts, are Copyright (c) 1994/1995, Stephen P
  69. Potter and Tom Christiansen, perlfaq@perl.com.  All rights reservered.
  70. Permisson to distribute this collection, in part or full, via electronic
  71. means (emailed, posted or archived) or printed copy are granted providing
  72. that no charges are involved, reasonable attempt is made to use the most
  73. current version, and all credits and copyright notices are retained.
  74. Requests for other distribution rights, including incorporation in
  75. commercial products, such as books, magazine articles, or CD-ROMs should be
  76. made to perlfaq@perl.com.
  77.  
  78. This FAQ is archived on ftp.cis.ufl.edu [128.227.100.198] in the file
  79. pub/perl/doc/FAQ, as well as on rtfm.mit.edu [18.181.0.24] in
  80. /pub/usenet/comp.lang.perl.*.  If you have any suggested additions or
  81. corrections to this article, please send them to <perlfaq@perl.com>. 
  82.  
  83.  
  84. Part 1 - General Information and Availability
  85. 1.1) What is Perl?
  86. 1.2) What are perl4 and perl5, are there any differences?
  87. 1.3) What features does perl5 provide over perl4?
  88. 1.4) Where can I get docs on perl5?
  89. 1.5) Will perl5 break my perl4 scripts?
  90. 1.6) When will Perl stabilize?
  91. 1.7) What's the difference between "perl" and "Perl"?
  92. 1.8) Is it a perl program or a perl script?
  93. 1.9) Is perl difficult to learn?
  94. 1.10) Should I program everything in perl?
  95. 1.11) How does perl compare with other scripting languages, like Tcl,
  96.         Python or REXX? 
  97. 1.12) Where can I get Perl over the Internet (FTP)?
  98. 1.13) How can I get Perl via email?
  99. 1.14) How can I get Perl via UUCP?
  100. 1.15) Are there other ways of getting perl?
  101. 1.16) Has perl been ported to machine FOO?
  102. 1.17) How do I get perl to compile on Solaris?
  103. 1.18) How do I get perl to compile on a NeXT?
  104. 1.19) What extensions are available for Perl and where can I get them?
  105. 1.20) What is dbperl and where can I get it?
  106. 1.21) Which DBM should I use?
  107. 1.22) Is there an SNMP aware perl?
  108. 1.23) Is there an ISO or ANSI certified version of Perl?
  109.  
  110.  
  111. Part 2 - Informational Sources
  112. 2.1) Is there a USENET group for perl?
  113. 2.2) Have any books or magazine articles been published about perl?
  114. 2.3) When will the Camel and Llama books be updated?
  115. 2.4) What FTP resources are available?
  116. 2.5) What WWW/gopher resources are available?
  117. 2.6) Can people who don't have access to USENET get comp.lang.perl.misc?
  118. 2.7) Are archives of comp.lang.perl.* available?
  119. 2.8) Is there a WAIS server for comp.lang.perl.*?
  120. 2.9) What other sources of information about Perl or training are available?
  121. 2.10) Where can I get training classes on Perl?
  122. 2.11) What companies ship or use perl?
  123. 2.12) Is there commercial, third-party support for perl?
  124. 2.13) What is a JAPH?  What does "Will hack perl for ..." mean?
  125. 2.14) Where can I get a collection of Larry Wall witticisms?
  126. 2.15) What are the known bugs?
  127. 2.16) Where should I post bugs?
  128. 2.17) Where should I post source code?
  129. 2.18) Where can I learn about object-orienting Perl programming?
  130. 2.19) Where can I learn about linking C with Perl? [h2xs, xsubpp]
  131. 2.20) What is perl.com?
  132. 2.21) What do the asterisks (*) throughout the FAQ stand for?
  133.  
  134.  
  135. Part 3 - Programming Aids
  136. 3.1) How do I use perl interactively?
  137. 3.2) Is there a perl profiler?
  138. 3.3) Is there a yacc for perl?
  139. 3.4) Is there a pretty printer (similar to indent(1)) for perl?
  140. 3.5) How can I convert my perl scripts directly to C or compile them into
  141.      binary form?
  142. 3.6) Where can I get a perl mode for emacs?
  143. 3.7) Is there a perl shell?
  144. 3.8) How can I use curses with perl?
  145. 3.9) How can I use X or Tk with perl?
  146. 3.10) Can I dynamically load C user routines?
  147. 3.11) What is undump and where can I get it?
  148. 3.12) How can I get '#!perl' to work under MS-DOS?
  149. 3.13) Can I write useful perl programs on the command line?
  150. 3.14) What's a "closure"?
  151.  
  152.  
  153. Part 4 - General Programming, Regular Expressions (Regexp) and I/O
  154. 4.1) What are all these $@%*<> signs and how do I know when to use them?
  155. 4.2) Why do Perl operators have different precedence than C operators?
  156. 4.3) What's the difference between dynamic and static (lexical) scoping?
  157. 4.4) What's the difference between deep and shallow binding?
  158. 4.5) How can I manipulate fixed-record-length files?
  159. 4.6) How can I make a file handle local to a subroutine?
  160. 4.7) How can I sleep or alarm for under a second?
  161. 4.8) How can I do an atexit() or setjmp()/longjmp()? (Exception handling) 
  162. 4.9) How can I catch signals?
  163. 4.10) Why isn't my octal data interpretted correctly?
  164. 4.11) How can I compare two date strings?
  165. 4.12) How can I find the Julian Day?
  166. 4.13) Does perl have a round function?  What about ceil() and floor()?
  167. 4.14) What's the fastest way to code up a given task in perl?
  168. 4.15) Do I always/never have to quote my strings or use semicolons?
  169. 4.16) What is variable suicide and how can I prevent it?
  170. 4.17) What does "Malformed command links" mean?
  171. 4.18) How can I set up a footer format to be used with write()?
  172. 4.19) Why does my program keep growing in size?
  173. 4.20) Can I do RPC?
  174. 4.21) Why doesn't my sockets program work under System V (Solaris)?  What
  175.         does the error message "Protocol not supported" mean?
  176. 4.22) How can I quote a variable to use in a regexp?
  177. 4.23) How can I change the first N letters of a string?
  178. 4.24) How can I count the number of occurrences of a substring within a
  179.         string?
  180. 4.25) Can I use Perl regular expressions to match balanced text?
  181. 4.26) What does it mean that regexps are greedy?  How can I get around it?
  182. 4.27) How do I use a regular expression to strip C style comments from a
  183.         file?
  184. 4.28) How can I split a [character] delimited string except when inside
  185.         [character]?
  186. 4.29) Why doesn't "local($foo) = <FILE>;" work right?
  187. 4.30) How can I detect keyboard input without reading it? 
  188. 4.31) How can I read a single character from the keyboard under UNIX and DOS?
  189. 4.32) How can I get input from the keyboard without it echoing to the
  190.         screen?
  191. 4.33) Is there any easy way to strip blank space from the beginning/end of
  192.         a string?
  193. 4.34) How can I output my numbers with commas added?
  194. 4.35) How do I expand tags in a string?
  195. 4.36) What's wrong with grep in a void context?
  196.  
  197.  
  198. Part 5 - Arrays and Shell and External Program Interactions
  199. 5.1) What is the difference between $array[1] and @array[1]?
  200. 5.2) How can I make an array of arrays or other recursive data types?
  201. 5.3) How can I make an array of structures containing various data types?
  202. 5.4) How can I extract just the unique elements of an array?
  203. 5.5) How can I tell whether an array contains a certain element?
  204. 5.6) How can I sort an associative array by value instead of by key?
  205. 5.7) How can I know how many entries are in an associative array?
  206. 5.8) What's the difference between "delete" and "undef" with %arrays?
  207. 5.9) Why don't backticks work as they do in shells?
  208. 5.10) Why does my converted awk/sed/sh script run more slowly in perl?
  209. 5.11) How can I call my system's unique C functions from perl?
  210. 5.12) Where do I get the include files to do ioctl() or syscall()?  [h2ph]
  211. 5.13) Why do setuid perl scripts complain about kernel problems?
  212. 5.14) How can I open a pipe both to and from a command?
  213. 5.15) How can I capture STDERR from an external command?
  214. 5.16) Why doesn't open() return an error when a pipe open fails?
  215. 5.17) Why can't my script read from STDIN after I gave it ^D (EOF)?
  216. 5.18) How can I translate tildes (~) in a filename?
  217. 5.19) How can I convert my shell script to perl?
  218. 5.20) Can I use perl to run a telnet or ftp session?
  219. 5.21) Why do I sometimes get an "Argument list to long" when I use <*>?
  220. 5.22) How do I do a "tail -f" in perl?
  221. 5.23) Is there a way to hide perl's command line from programs such as "ps"?
  222. 5.24) I {changed directory, modified my environment} in a perl script.  How
  223.       come the change disappeared when I exited the script?  How do I get
  224.       my changes to be visible?
  225. 5.25) How can I pass a filehandle to a function, or make a list of
  226.       filehandles? 
  227. 5.26) How can I open a file with a leading ">" or trailing blanks?
  228. 5.27) How can I tell if a variable is tainted?
  229. --
  230. Stephen P Potter        Pencom Systems Administration              Beaching It 
  231. spp@psa.pencom.com    Pager: 1-800-759-8888, 547-9561     Work: 703-860-2222
  232.   Cthulhu for President in '96: When You're Tired of the Lesser of Two Evils
  233. --
  234. Stephen P Potter        Pencom Systems Administration              Beaching It 
  235. spp@psa.pencom.com    Pager: 1-800-759-8888, 547-9561     Work: 703-860-2222
  236. "I don't care whether people actually like Perl, just so long as they *think*
  237.     they like it...  ;-)"    -Larry Wall
  238.