perl.xml 20 KB

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