perl.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  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. <sect1info condition="script">
  10. <productname>perl</productname>
  11. <productnumber>&perl-version;</productnumber>
  12. <address>&perl-url;</address>
  13. </sect1info>
  14. <title>Perl-&perl-version;</title>
  15. <indexterm zone="ch-system-perl">
  16. <primary sortas="a-Perl">Perl</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Perl package contains the Practical Extraction and Report
  21. Language.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&perl-ch6-sbu;</seg>
  27. <seg>&perl-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Perl</title>
  33. <para>First create a basic <filename>/etc/hosts</filename> file to be
  34. referenced in one of Perl's configuration files as well as the optional
  35. test suite:</para>
  36. <screen><userinput remap="pre">echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
  37. <para>This version of Perl now builds the Compress::Raw::Zlib and
  38. Compress::Raw::BZip2 modules. By
  39. default Perl will use an internal copy of the sources for the build.
  40. Issue the following command so that Perl will use the libraries
  41. installed on the system:</para>
  42. <screen><userinput remap="pre">export BUILD_ZLIB=False
  43. export BUILD_BZIP2=0</userinput></screen>
  44. <!--
  45. <para>Apply a patch to allow the Errno.pm module and the h2ph
  46. program to build correctly when building with GCC 5:</para>
  47. <screen><userinput remap="pre">patch -Np1 -i ../&perl-gcc5-fixes-patch;</userinput></screen>
  48. -->
  49. <para>To have full control over the way Perl is set up, you can remove the
  50. <quote>-des</quote> options from the following command and hand-pick the way
  51. this package is built. Alternatively, use the command exactly as below to
  52. use the defaults that Perl auto-detects:</para>
  53. <screen><userinput remap="configure">sh Configure -des -Dprefix=/usr \
  54. -Dvendorprefix=/usr \
  55. -Dman1dir=/usr/share/man/man1 \
  56. -Dman3dir=/usr/share/man/man3 \
  57. -Dpager="/usr/bin/less -isR" \
  58. -Duseshrplib</userinput></screen>
  59. <variablelist>
  60. <title>The meaning of the configure options:</title>
  61. <varlistentry>
  62. <term><parameter>-Dvendorprefix=/usr</parameter></term>
  63. <listitem>
  64. <para>This ensures <command>perl</command> knows how to
  65. tell packages where they should install their perl modules.</para>
  66. </listitem>
  67. </varlistentry>
  68. <varlistentry>
  69. <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
  70. <listitem>
  71. <para>This ensures that <userinput>less</userinput> is used instead
  72. of <userinput>more</userinput>.</para>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry>
  76. <term><parameter>-Dman1dir=/usr/share/man/man1
  77. -Dman3dir=/usr/share/man/man3</parameter></term>
  78. <listitem>
  79. <para>Since Groff is not installed yet, <command>Configure</command>
  80. thinks that we do not want man pages for Perl. Issuing these
  81. parameters overrides this decision.</para>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry>
  85. <term><parameter>-Duseshrplib</parameter></term>
  86. <listitem>
  87. <para>Build a shared libperl needed by some perl modules.</para>
  88. </listitem>
  89. </varlistentry>
  90. </variablelist>
  91. <para>Compile the package:</para>
  92. <screen><userinput remap="make">make</userinput></screen>
  93. <para>To test the results (approximately 2.5 SBU), issue:</para>
  94. <screen><userinput remap="test">make -k test</userinput></screen>
  95. <para>Install the package and clean up:</para>
  96. <screen><userinput remap="install">make install
  97. unset BUILD_ZLIB BUILD_BZIP2</userinput></screen>
  98. </sect2>
  99. <sect2 id="contents-perl" role="content">
  100. <title>Contents of Perl</title>
  101. <segmentedlist>
  102. <segtitle>Installed programs</segtitle>
  103. <segtitle>Installed libraries</segtitle>
  104. <segtitle>Installed directory</segtitle>
  105. <seglistitem>
  106. <seg>a2p, c2ph, corelist, cpan, cpan2dist, cpanp,
  107. cpanp-run-perl, enc2xs, find2perl, h2ph, h2xs,
  108. instmodsh, json_pp, libnetcfg, perl, perl&perl-version; (link to perl),
  109. perlbug, perldoc, perlivp, perlthanks (link to perlbug), piconv, pl2pm,
  110. pod2html, pod2latex, pod2man, pod2text, pod2usage, podchecker,
  111. podselect, prove, psed (link to s2p), pstruct (link to c2ph), ptar,
  112. ptardiff, ptargrep, s2p, shasum, splain, xsubpp, and zipdetails</seg>
  113. <seg>Several hundred which cannot all be listed here</seg>
  114. <seg>/usr/lib/perl5</seg>
  115. </seglistitem>
  116. </segmentedlist>
  117. <variablelist>
  118. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  119. <?dbfo list-presentation="list"?>
  120. <?dbhtml list-presentation="table"?>
  121. <varlistentry id="a2p">
  122. <term><command>a2p</command></term>
  123. <listitem>
  124. <para>Translates awk to Perl</para>
  125. <indexterm zone="ch-system-perl a2p">
  126. <primary sortas="b-a2p">a2p</primary>
  127. </indexterm>
  128. </listitem>
  129. </varlistentry>
  130. <varlistentry id="c2ph">
  131. <term><command>c2ph</command></term>
  132. <listitem>
  133. <para>Dumps C structures as generated from
  134. <command>cc -g -S</command></para>
  135. <indexterm zone="ch-system-perl c2ph">
  136. <primary sortas="b-c2ph">c2ph</primary>
  137. </indexterm>
  138. </listitem>
  139. </varlistentry>
  140. <varlistentry id="corelist">
  141. <term><command>corelist</command></term>
  142. <listitem>
  143. <para>A commandline frontend to Module::CoreList</para>
  144. <indexterm zone="ch-system-perl corelist">
  145. <primary sortas="b-corelist">corelist</primary>
  146. </indexterm>
  147. </listitem>
  148. </varlistentry>
  149. <varlistentry id="cpan">
  150. <term><command>cpan</command></term>
  151. <listitem>
  152. <para>Interact with the Comprehensive Perl Archive Network (CPAN)
  153. from the command line</para>
  154. <indexterm zone="ch-system-perl cpan">
  155. <primary sortas="b-cpan">cpan</primary>
  156. </indexterm>
  157. </listitem>
  158. </varlistentry>
  159. <varlistentry id="cpan2dist">
  160. <term><command>cpan2dist</command></term>
  161. <listitem>
  162. <para>The CPANPLUS distribution creator</para>
  163. <indexterm zone="ch-system-perl cpan2dist">
  164. <primary sortas="b-cpan2dist">cpan2dist</primary>
  165. </indexterm>
  166. </listitem>
  167. </varlistentry>
  168. <varlistentry id="cpanp">
  169. <term><command>cpanp</command></term>
  170. <listitem>
  171. <para>The CPANPLUS launcher</para>
  172. <indexterm zone="ch-system-perl cpanp">
  173. <primary sortas="b-cpanp">cpanp</primary>
  174. </indexterm>
  175. </listitem>
  176. </varlistentry>
  177. <varlistentry id="cpanp-run-perl">
  178. <term><command>cpanp-run-perl</command></term>
  179. <listitem>
  180. <para>Perl script that is used to enable flushing of the output
  181. buffer after each write in spawned processes</para>
  182. <indexterm zone="ch-system-perl cpanp-run-perl">
  183. <primary sortas="b-cpanp-run-perl">cpanp-run-perl</primary>
  184. </indexterm>
  185. </listitem>
  186. </varlistentry>
  187. <varlistentry id="enc2xs">
  188. <term><command>enc2xs</command></term>
  189. <listitem>
  190. <para>Builds a Perl extension for the Encode module from either
  191. Unicode Character Mappings or Tcl Encoding Files</para>
  192. <indexterm zone="ch-system-perl enc2xs">
  193. <primary sortas="b-enc2xs">enc2xs</primary>
  194. </indexterm>
  195. </listitem>
  196. </varlistentry>
  197. <varlistentry id="find2perl">
  198. <term><command>find2perl</command></term>
  199. <listitem>
  200. <para>Translates <command>find</command> commands to Perl</para>
  201. <indexterm zone="ch-system-perl find2perl">
  202. <primary sortas="b-find2perl">find2perl</primary>
  203. </indexterm>
  204. </listitem>
  205. </varlistentry>
  206. <varlistentry id="h2ph">
  207. <term><command>h2ph</command></term>
  208. <listitem>
  209. <para>Converts <filename class="extension">.h</filename> C header
  210. files to <filename class="extension">.ph</filename> Perl header
  211. files</para>
  212. <indexterm zone="ch-system-perl h2ph">
  213. <primary sortas="b-h2ph">h2ph</primary>
  214. </indexterm>
  215. </listitem>
  216. </varlistentry>
  217. <varlistentry id="h2xs">
  218. <term><command>h2xs</command></term>
  219. <listitem>
  220. <para>Converts <filename class="extension">.h</filename> C header
  221. files to Perl extensions</para>
  222. <indexterm zone="ch-system-perl h2xs">
  223. <primary sortas="b-h2xs">h2xs</primary>
  224. </indexterm>
  225. </listitem>
  226. </varlistentry>
  227. <varlistentry id="instmodsh">
  228. <term><command>instmodsh</command></term>
  229. <listitem>
  230. <para>Shell script for examining installed Perl modules,
  231. and can even create a tarball from an installed module</para>
  232. <indexterm zone="ch-system-perl instmodsh">
  233. <primary sortas="b-instmodsh">instmodsh</primary>
  234. </indexterm>
  235. </listitem>
  236. </varlistentry>
  237. <varlistentry id="json_pp">
  238. <term><command>json_pp</command></term>
  239. <listitem>
  240. <para>Converts data between certain input and output formats</para>
  241. <indexterm zone="ch-system-perl json_pp">
  242. <primary sortas="b-json_pp">json_pp</primary>
  243. </indexterm>
  244. </listitem>
  245. </varlistentry>
  246. <varlistentry id="libnetcfg">
  247. <term><command>libnetcfg</command></term>
  248. <listitem>
  249. <para>Can be used to configure the
  250. <filename class="libraryfile">libnet</filename> Perl module</para>
  251. <indexterm zone="ch-system-perl libnetcfg">
  252. <primary sortas="b-libnetcfg">libnetcfg</primary>
  253. </indexterm>
  254. </listitem>
  255. </varlistentry>
  256. <varlistentry id="perl">
  257. <term><command>perl</command></term>
  258. <listitem>
  259. <para>Combines some of the best features of C, <command>sed</command>,
  260. <command>awk</command> and <command>sh</command> into a single
  261. swiss-army language</para>
  262. <indexterm zone="ch-system-perl perl">
  263. <primary sortas="b-perl">perl</primary>
  264. </indexterm>
  265. </listitem>
  266. </varlistentry>
  267. <varlistentry id="perl-version">
  268. <term><command>perl&perl-version;</command></term>
  269. <listitem>
  270. <para>A hard link to <command>perl</command></para>
  271. <indexterm zone="ch-system-perl perl-version">
  272. <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
  273. </indexterm>
  274. </listitem>
  275. </varlistentry>
  276. <varlistentry id="perlbug">
  277. <term><command>perlbug</command></term>
  278. <listitem>
  279. <para>Used to generate bug reports about Perl, or the modules that come
  280. with it, and mail them</para>
  281. <indexterm zone="ch-system-perl perlbug">
  282. <primary sortas="b-perlbug">perlbug</primary>
  283. </indexterm>
  284. </listitem>
  285. </varlistentry>
  286. <varlistentry id="perldoc">
  287. <term><command>perldoc</command></term>
  288. <listitem>
  289. <para>Displays a piece of documentation in pod format that is embedded
  290. in the Perl installation tree or in a Perl script</para>
  291. <indexterm zone="ch-system-perl perldoc">
  292. <primary sortas="b-perldoc">perldoc</primary>
  293. </indexterm>
  294. </listitem>
  295. </varlistentry>
  296. <varlistentry id="perlivp">
  297. <term><command>perlivp</command></term>
  298. <listitem>
  299. <para>The Perl Installation Verification Procedure; it can be used to
  300. verify that Perl and its libraries have been installed
  301. correctly</para>
  302. <indexterm zone="ch-system-perl perlivp">
  303. <primary sortas="b-perlivp">perlivp</primary>
  304. </indexterm>
  305. </listitem>
  306. </varlistentry>
  307. <varlistentry id="perlthanks">
  308. <term><command>perlthanks</command></term>
  309. <listitem>
  310. <para>Used to generate thank you messages to mail to the Perl
  311. developers</para>
  312. <indexterm zone="ch-system-perl perlthanks">
  313. <primary sortas="b-perlthanks">perlthanks</primary>
  314. </indexterm>
  315. </listitem>
  316. </varlistentry>
  317. <varlistentry id="piconv">
  318. <term><command>piconv</command></term>
  319. <listitem>
  320. <para>A Perl version of the character encoding converter
  321. <command>iconv</command></para>
  322. <indexterm zone="ch-system-perl piconv">
  323. <primary sortas="b-piconv">piconv</primary>
  324. </indexterm>
  325. </listitem>
  326. </varlistentry>
  327. <varlistentry id="pl2pm">
  328. <term><command>pl2pm</command></term>
  329. <listitem>
  330. <para>A rough tool for converting Perl4
  331. <filename class="extension">.pl</filename> files to Perl5
  332. <filename class="extension">.pm</filename> modules</para>
  333. <indexterm zone="ch-system-perl pl2pm">
  334. <primary sortas="b-pl2pm">pl2pm</primary>
  335. </indexterm>
  336. </listitem>
  337. </varlistentry>
  338. <varlistentry id="pod2html">
  339. <term><command>pod2html</command></term>
  340. <listitem>
  341. <para>Converts files from pod format to HTML format</para>
  342. <indexterm zone="ch-system-perl pod2html">
  343. <primary sortas="b-pod2html">pod2html</primary>
  344. </indexterm>
  345. </listitem>
  346. </varlistentry>
  347. <varlistentry id="pod2latex">
  348. <term><command>pod2latex</command></term>
  349. <listitem>
  350. <para>Converts files from pod format to LaTeX format</para>
  351. <indexterm zone="ch-system-perl pod2latex">
  352. <primary sortas="b-pod2latex">pod2latex</primary>
  353. </indexterm>
  354. </listitem>
  355. </varlistentry>
  356. <varlistentry id="pod2man">
  357. <term><command>pod2man</command></term>
  358. <listitem>
  359. <para>Converts pod data to formatted *roff input</para>
  360. <indexterm zone="ch-system-perl pod2man">
  361. <primary sortas="b-pod2man">pod2man</primary>
  362. </indexterm>
  363. </listitem>
  364. </varlistentry>
  365. <varlistentry id="pod2text">
  366. <term><command>pod2text</command></term>
  367. <listitem>
  368. <para>Converts pod data to formatted ASCII text</para>
  369. <indexterm zone="ch-system-perl pod2text">
  370. <primary sortas="b-pod2text">pod2text</primary>
  371. </indexterm>
  372. </listitem>
  373. </varlistentry>
  374. <varlistentry id="pod2usage">
  375. <term><command>pod2usage</command></term>
  376. <listitem>
  377. <para>Prints usage messages from embedded pod docs in files</para>
  378. <indexterm zone="ch-system-perl pod2usage">
  379. <primary sortas="b-pod2usage">pod2usage</primary>
  380. </indexterm>
  381. </listitem>
  382. </varlistentry>
  383. <varlistentry id="podchecker">
  384. <term><command>podchecker</command></term>
  385. <listitem>
  386. <para>Checks the syntax of pod format documentation files</para>
  387. <indexterm zone="ch-system-perl podchecker">
  388. <primary sortas="b-podchecker">podchecker</primary>
  389. </indexterm>
  390. </listitem>
  391. </varlistentry>
  392. <varlistentry id="podselect">
  393. <term><command>podselect</command></term>
  394. <listitem>
  395. <para>Displays selected sections of pod documentation</para>
  396. <indexterm zone="ch-system-perl podselect">
  397. <primary sortas="b-podselect">podselect</primary>
  398. </indexterm>
  399. </listitem>
  400. </varlistentry>
  401. <varlistentry id="prove">
  402. <term><command>prove</command></term>
  403. <listitem>
  404. <para>Command line tool for running tests against the Test::Harness
  405. module</para>
  406. <indexterm zone="ch-system-perl prove">
  407. <primary sortas="b-prove">prove</primary>
  408. </indexterm>
  409. </listitem>
  410. </varlistentry>
  411. <varlistentry id="psed">
  412. <term><command>psed</command></term>
  413. <listitem>
  414. <para>A Perl version of the stream editor <command>sed</command></para>
  415. <indexterm zone="ch-system-perl psed">
  416. <primary sortas="b-psed">psed</primary>
  417. </indexterm>
  418. </listitem>
  419. </varlistentry>
  420. <varlistentry id="pstruct">
  421. <term><command>pstruct</command></term>
  422. <listitem>
  423. <para>Dumps C structures as generated from <command>cc -g -S</command>
  424. stabs</para>
  425. <indexterm zone="ch-system-perl pstruct">
  426. <primary sortas="b-pstruct">pstruct</primary>
  427. </indexterm>
  428. </listitem>
  429. </varlistentry>
  430. <varlistentry id="ptar">
  431. <term><command>ptar</command></term>
  432. <listitem>
  433. <para>A <command>tar</command>-like program written in Perl</para>
  434. <indexterm zone="ch-system-perl ptar">
  435. <primary sortas="b-ptar">ptar</primary>
  436. </indexterm>
  437. </listitem>
  438. </varlistentry>
  439. <varlistentry id="ptardiff">
  440. <term><command>ptardiff</command></term>
  441. <listitem>
  442. <para>A Perl program that compares an extracted archive with an
  443. unextracted one</para>
  444. <indexterm zone="ch-system-perl ptardiff">
  445. <primary sortas="b-ptardiff">ptardiff</primary>
  446. </indexterm>
  447. </listitem>
  448. </varlistentry>
  449. <varlistentry id="ptargrep">
  450. <term><command>ptargrep</command></term>
  451. <listitem>
  452. <para>A Perl program that applies pattern matching to the contents
  453. of files in a tar archive</para>
  454. <indexterm zone="ch-system-perl ptargrep">
  455. <primary sortas="b-ptargrep">ptargrep</primary>
  456. </indexterm>
  457. </listitem>
  458. </varlistentry>
  459. <varlistentry id="s2p">
  460. <term><command>s2p</command></term>
  461. <listitem>
  462. <para>Translates <command>sed</command> scripts to Perl</para>
  463. <indexterm zone="ch-system-perl s2p">
  464. <primary sortas="b-s2p">s2p</primary>
  465. </indexterm>
  466. </listitem>
  467. </varlistentry>
  468. <varlistentry id="shasum">
  469. <term><command>shasum</command></term>
  470. <listitem>
  471. <para>Prints or checks SHA checksums</para>
  472. <indexterm zone="ch-system-perl shasum">
  473. <primary sortas="b-shasum">shasum</primary>
  474. </indexterm>
  475. </listitem>
  476. </varlistentry>
  477. <varlistentry id="splain">
  478. <term><command>splain</command></term>
  479. <listitem>
  480. <para>Is used to force verbose warning diagnostics in Perl</para>
  481. <indexterm zone="ch-system-perl splain">
  482. <primary sortas="b-splain">splain</primary>
  483. </indexterm>
  484. </listitem>
  485. </varlistentry>
  486. <varlistentry id="xsubpp">
  487. <term><command>xsubpp</command></term>
  488. <listitem>
  489. <para>Converts Perl XS code into C code</para>
  490. <indexterm zone="ch-system-perl xsubpp">
  491. <primary sortas="b-xsubpp">xsubpp</primary>
  492. </indexterm>
  493. </listitem>
  494. </varlistentry>
  495. <varlistentry id="zipdetails">
  496. <term><command>zipdetails</command></term>
  497. <listitem>
  498. <para>Displays details about the internal structure of a Zip file</para>
  499. <indexterm zone="ch-system-perl zipdetails">
  500. <primary sortas="b-zipdetails">zipdetails</primary>
  501. </indexterm>
  502. </listitem>
  503. </varlistentry>
  504. </variablelist>
  505. </sect2>
  506. </sect1>