perl.xml 15 KB

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