perl.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-perl" role="wrap">
  8. <?dbhtml filename="perl.html"?>
  9. <title>Perl-&perl-version;</title>
  10. <indexterm zone="ch-system-perl">
  11. <primary sortas="a-Perl">Perl</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The Perl package contains the Practical Extraction and Report
  16. Language.</para>
  17. <segmentedlist>
  18. <segtitle>&buildtime;</segtitle>
  19. <segtitle>&diskspace;</segtitle>
  20. <seglistitem>
  21. <seg>&perl-ch6-sbu;</seg>
  22. <seg>&perl-ch6-du;</seg>
  23. </seglistitem>
  24. </segmentedlist>
  25. </sect2>
  26. <sect2 role="installation">
  27. <title>Installation of Perl</title>
  28. <para>First create a basic <filename>/etc/hosts</filename> file which will be
  29. referenced in one of Perl's configuration files as well as being used used by
  30. the testsuite if you run that:</para>
  31. <screen><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
  32. <para>To have full control over the way Perl is set up, you can run the
  33. interactive <command>Configure</command> script and hand-pick the way this
  34. package is built. If you prefer, you can use the defaults that Perl
  35. auto-detects, by preparing Perl for compilation with:</para>
  36. <screen><userinput>./configure.gnu --prefix=/usr \
  37. -Dman1dir=/usr/share/man/man1 \
  38. -Dman3dir=/usr/share/man/man3 \
  39. -Dpager="/usr/bin/less -isR"</userinput></screen>
  40. <variablelist>
  41. <title>The meaning of the configure options:</title>
  42. <varlistentry>
  43. <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
  44. <listitem>
  45. <para>This corrects an error in the way that <command>perldoc</command>
  46. invokes the <command>less</command> program.</para>
  47. </listitem>
  48. </varlistentry>
  49. <varlistentry>
  50. <term><parameter>-Dman1dir=/usr/share/man/man1
  51. -Dman3dir=/usr/share/man/man3</parameter></term>
  52. <listitem>
  53. <para>Since Groff is not installed yet, <command>Configure</command>
  54. thinks that we do not want man pages for Perl. Issuing these
  55. parameters overrides this decision.</para>
  56. </listitem>
  57. </varlistentry>
  58. </variablelist>
  59. <para>Compile the package:</para>
  60. <screen><userinput>make</userinput></screen>
  61. <para>To test the results, issue:
  62. <userinput>make test</userinput>.</para>
  63. <para>Install the package:</para>
  64. <screen><userinput>make install</userinput></screen>
  65. </sect2>
  66. <sect2 id="contents-perl" role="content">
  67. <title>Contents of Perl</title>
  68. <segmentedlist>
  69. <segtitle>Installed programs</segtitle>
  70. <segtitle>Installed libraries</segtitle>
  71. <seglistitem>
  72. <seg>a2p, c2ph, cpan, dprofpp, enc2xs, find2perl, h2ph, h2xs,
  73. instmodsh, libnetcfg, perl, perl&perl-version; (link to perl),
  74. perlbug, perlcc, perldoc, perlivp, piconv, pl2pm, pod2html, pod2latex,
  75. pod2man, pod2text, pod2usage, podchecker, podselect, prove,
  76. psed (link to s2p), pstruct (link to c2ph), s2p, splain, and
  77. xsubpp</seg>
  78. <seg>Several hundred which cannot all be listed here</seg>
  79. </seglistitem>
  80. </segmentedlist>
  81. <variablelist>
  82. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  83. <?dbfo list-presentation="list"?>
  84. <?dbhtml list-presentation="table"?>
  85. <varlistentry id="a2p">
  86. <term><command>a2p</command></term>
  87. <listitem>
  88. <para>Translates awk to Perl</para>
  89. <indexterm zone="ch-system-perl a2p">
  90. <primary sortas="b-a2p">a2p</primary>
  91. </indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="c2ph">
  95. <term><command>c2ph</command></term>
  96. <listitem>
  97. <para>Dumps C structures as generated from
  98. <command>cc -g -S</command></para>
  99. <indexterm zone="ch-system-perl c2ph">
  100. <primary sortas="b-c2ph">c2ph</primary>
  101. </indexterm>
  102. </listitem>
  103. </varlistentry>
  104. <varlistentry id="cpan">
  105. <term><command>cpan</command></term>
  106. <listitem>
  107. <para>Interact with the Comprehensive Perl Archive Network (CPAN)
  108. from the command line</para>
  109. <indexterm zone="ch-system-perl cpan">
  110. <primary sortas="b-cpan">cpan</primary>
  111. </indexterm>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry id="dprofpp">
  115. <term><command>dprofpp</command></term>
  116. <listitem>
  117. <para>Displays Perl profile data</para>
  118. <indexterm zone="ch-system-perl dprofpp">
  119. <primary sortas="b-dprofpp">dprofpp</primary>
  120. </indexterm>
  121. </listitem>
  122. </varlistentry>
  123. <varlistentry id="enc2xs">
  124. <term><command>enc2xs</command></term>
  125. <listitem>
  126. <para>Builds a Perl extension for the Encode module from either
  127. Unicode Character Mappings or Tcl Encoding Files</para>
  128. <indexterm zone="ch-system-perl enc2xs">
  129. <primary sortas="b-enc2xs">enc2xs</primary>
  130. </indexterm>
  131. </listitem>
  132. </varlistentry>
  133. <varlistentry id="find2perl">
  134. <term><command>find2perl</command></term>
  135. <listitem>
  136. <para>Translates <command>find</command> commands to Perl</para>
  137. <indexterm zone="ch-system-perl find2perl">
  138. <primary sortas="b-find2perl">find2perl</primary>
  139. </indexterm>
  140. </listitem>
  141. </varlistentry>
  142. <varlistentry id="h2ph">
  143. <term><command>h2ph</command></term>
  144. <listitem>
  145. <para>Converts <filename class="extension">.h</filename> C header
  146. files to <filename class="extension">.ph</filename> Perl header
  147. files</para>
  148. <indexterm zone="ch-system-perl h2ph">
  149. <primary sortas="b-h2ph">h2ph</primary>
  150. </indexterm>
  151. </listitem>
  152. </varlistentry>
  153. <varlistentry id="h2xs">
  154. <term><command>h2xs</command></term>
  155. <listitem>
  156. <para>Converts <filename class="extension">.h</filename> C header
  157. files to Perl extensions</para>
  158. <indexterm zone="ch-system-perl h2xs">
  159. <primary sortas="b-h2xs">h2xs</primary>
  160. </indexterm>
  161. </listitem>
  162. </varlistentry>
  163. <varlistentry id="instmodsh">
  164. <term><command>instmodsh</command></term>
  165. <listitem>
  166. <para>Shell script for examining installed Perl modules,
  167. and can even create a tarball from an installed module</para>
  168. <indexterm zone="ch-system-perl instmodsh">
  169. <primary sortas="b-instmodsh">instmodsh</primary>
  170. </indexterm>
  171. </listitem>
  172. </varlistentry>
  173. <varlistentry id="libnetcfg">
  174. <term><command>libnetcfg</command></term>
  175. <listitem>
  176. <para>Can be used to configure the
  177. <filename class="libraryfile">libnet</filename></para>
  178. <indexterm zone="ch-system-perl libnetcfg">
  179. <primary sortas="b-libnetcfg">libnetcfg</primary>
  180. </indexterm>
  181. </listitem>
  182. </varlistentry>
  183. <varlistentry id="perl">
  184. <term><command>perl</command></term>
  185. <listitem>
  186. <para>Combines some of the best features of C, <command>sed</command>,
  187. <command>awk</command> and <command>sh</command> into a single
  188. swiss-army language</para>
  189. <indexterm zone="ch-system-perl perl">
  190. <primary sortas="b-perl">perl</primary>
  191. </indexterm>
  192. </listitem>
  193. </varlistentry>
  194. <varlistentry id="perl-version">
  195. <term><command>perl&perl-version;</command></term>
  196. <listitem>
  197. <para>A hard link to <command>perl</command></para>
  198. <indexterm zone="ch-system-perl perl-version">
  199. <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
  200. </indexterm>
  201. </listitem>
  202. </varlistentry>
  203. <varlistentry id="perlbug">
  204. <term><command>perlbug</command></term>
  205. <listitem>
  206. <para>Used to generate bug reports about Perl, or the modules that come
  207. with it, and mail them</para>
  208. <indexterm zone="ch-system-perl perlbug">
  209. <primary sortas="b-perlbug">perlbug</primary>
  210. </indexterm>
  211. </listitem>
  212. </varlistentry>
  213. <varlistentry id="perlcc">
  214. <term><command>perlcc</command></term>
  215. <listitem>
  216. <para>Generates executables from Perl programs</para>
  217. <indexterm zone="ch-system-perl perlcc">
  218. <primary sortas="b-perlcc">perlcc</primary>
  219. </indexterm>
  220. </listitem>
  221. </varlistentry>
  222. <varlistentry id="perldoc">
  223. <term><command>perldoc</command></term>
  224. <listitem>
  225. <para>Displays a piece of documentation in pod format that is embedded
  226. in the Perl installation tree or in a Perl script</para>
  227. <indexterm zone="ch-system-perl perldoc">
  228. <primary sortas="b-perldoc">perldoc</primary>
  229. </indexterm>
  230. </listitem>
  231. </varlistentry>
  232. <varlistentry id="perlivp">
  233. <term><command>perlivp</command></term>
  234. <listitem>
  235. <para>The Perl Installation Verification Procedure; it can be used to
  236. verify that Perl and its libraries have been installed
  237. correctly</para>
  238. <indexterm zone="ch-system-perl perlivp">
  239. <primary sortas="b-perlivp">perlivp</primary>
  240. </indexterm>
  241. </listitem>
  242. </varlistentry>
  243. <varlistentry id="piconv">
  244. <term><command>piconv</command></term>
  245. <listitem>
  246. <para>A Perl version of the character encoding converter
  247. <command>iconv</command></para>
  248. <indexterm zone="ch-system-perl piconv">
  249. <primary sortas="b-piconv">piconv</primary>
  250. </indexterm>
  251. </listitem>
  252. </varlistentry>
  253. <varlistentry id="pl2pm">
  254. <term><command>pl2pm</command></term>
  255. <listitem>
  256. <para>A rough tool for converting Perl4
  257. <filename class="extension">.pl</filename> files to Perl5
  258. <filename class="extension">.pm</filename> modules</para>
  259. <indexterm zone="ch-system-perl pl2pm">
  260. <primary sortas="b-pl2pm">pl2pm</primary>
  261. </indexterm>
  262. </listitem>
  263. </varlistentry>
  264. <varlistentry id="pod2html">
  265. <term><command>pod2html</command></term>
  266. <listitem>
  267. <para>Converts files from pod format to HTML format</para>
  268. <indexterm zone="ch-system-perl pod2html">
  269. <primary sortas="b-pod2html">pod2html</primary>
  270. </indexterm>
  271. </listitem>
  272. </varlistentry>
  273. <varlistentry id="pod2latex">
  274. <term><command>pod2latex</command></term>
  275. <listitem>
  276. <para>Converts files from pod format to LaTeX format</para>
  277. <indexterm zone="ch-system-perl pod2latex">
  278. <primary sortas="b-pod2latex">pod2latex</primary>
  279. </indexterm>
  280. </listitem>
  281. </varlistentry>
  282. <varlistentry id="pod2man">
  283. <term><command>pod2man</command></term>
  284. <listitem>
  285. <para>Converts pod data to formatted *roff input</para>
  286. <indexterm zone="ch-system-perl pod2man">
  287. <primary sortas="b-pod2man">pod2man</primary>
  288. </indexterm>
  289. </listitem>
  290. </varlistentry>
  291. <varlistentry id="pod2text">
  292. <term><command>pod2text</command></term>
  293. <listitem>
  294. <para>Converts pod data to formatted ASCII text</para>
  295. <indexterm zone="ch-system-perl pod2text">
  296. <primary sortas="b-pod2text">pod2text</primary>
  297. </indexterm>
  298. </listitem>
  299. </varlistentry>
  300. <varlistentry id="pod2usage">
  301. <term><command>pod2usage</command></term>
  302. <listitem>
  303. <para>Prints usage messages from embedded pod docs in files</para>
  304. <indexterm zone="ch-system-perl pod2usage">
  305. <primary sortas="b-pod2usage">pod2usage</primary>
  306. </indexterm>
  307. </listitem>
  308. </varlistentry>
  309. <varlistentry id="podchecker">
  310. <term><command>podchecker</command></term>
  311. <listitem>
  312. <para>Checks the syntax of pod format documentation files</para>
  313. <indexterm zone="ch-system-perl podchecker">
  314. <primary sortas="b-podchecker">podchecker</primary>
  315. </indexterm>
  316. </listitem>
  317. </varlistentry>
  318. <varlistentry id="podselect">
  319. <term><command>podselect</command></term>
  320. <listitem>
  321. <para>Displays selected sections of pod documentation</para>
  322. <indexterm zone="ch-system-perl podselect">
  323. <primary sortas="b-podselect">podselect</primary>
  324. </indexterm>
  325. </listitem>
  326. </varlistentry>
  327. <varlistentry id="prove">
  328. <term><command>prove</command></term>
  329. <listitem>
  330. <para>Command line tool for running tests against the Test::Harness
  331. module.</para>
  332. <indexterm zone="ch-system-perl prove">
  333. <primary sortas="b-prove">prove</primary>
  334. </indexterm>
  335. </listitem>
  336. </varlistentry>
  337. <varlistentry id="psed">
  338. <term><command>psed</command></term>
  339. <listitem>
  340. <para>A Perl version of the stream editor <command>sed</command></para>
  341. <indexterm zone="ch-system-perl psed">
  342. <primary sortas="b-psed">psed</primary>
  343. </indexterm>
  344. </listitem>
  345. </varlistentry>
  346. <varlistentry id="pstruct">
  347. <term><command>pstruct</command></term>
  348. <listitem>
  349. <para>Dumps C structures as generated from <command>cc -g -S</command>
  350. stabs</para>
  351. <indexterm zone="ch-system-perl pstruct">
  352. <primary sortas="b-pstruct">pstruct</primary>
  353. </indexterm>
  354. </listitem>
  355. </varlistentry>
  356. <varlistentry id="s2p">
  357. <term><command>s2p</command></term>
  358. <listitem>
  359. <para>Translates <command>sed</command> scripts to Perl</para>
  360. <indexterm zone="ch-system-perl s2p">
  361. <primary sortas="b-s2p">s2p</primary>
  362. </indexterm>
  363. </listitem>
  364. </varlistentry>
  365. <varlistentry id="splain">
  366. <term><command>splain</command></term>
  367. <listitem>
  368. <para>Is used to force verbose warning diagnostics in Perl</para>
  369. <indexterm zone="ch-system-perl splain">
  370. <primary sortas="b-splain">splain</primary>
  371. </indexterm>
  372. </listitem>
  373. </varlistentry>
  374. <varlistentry id="xsubpp">
  375. <term><command>xsubpp</command></term>
  376. <listitem>
  377. <para>Converts Perl XS code into C code</para>
  378. <indexterm zone="ch-system-perl xsubpp">
  379. <primary sortas="b-xsubpp">xsubpp</primary>
  380. </indexterm>
  381. </listitem>
  382. </varlistentry>
  383. </variablelist>
  384. </sect2>
  385. </sect1>