Author: randy
Date: 2006-04-22 15:12:34 -0600 (Sat, 22 Apr 2006)
New Revision: 5911

Modified:
   trunk/BOOK/general/prog/perl-modules.xml
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/stylesheets/blfs.css
Log:
Modified the method of using cpan in the Perl Modules instructions, thanks to 
William Zhou for the suggestion

Modified: trunk/BOOK/general/prog/perl-modules.xml
===================================================================
--- trunk/BOOK/general/prog/perl-modules.xml    2006-04-22 20:06:19 UTC (rev 
5910)
+++ trunk/BOOK/general/prog/perl-modules.xml    2006-04-22 21:12:34 UTC (rev 
5911)
@@ -1223,34 +1223,42 @@
   <sect2 role="installation">
     <title>(Alternate) Auto Installation of Perl Modules.</title>
 
-    <para>There is an alternate way of installing the modules using
-    <application>Perl</application>'s built-in <command>install</command>
-    command. The command automatically downloads the source from the CPAN
-    archive, extracts it, runs the commands mentioned above, and removes the
-    build source tree. You may still need to install dependent library
-    packages before running the automated installation method.</para>
+    <para>There is an alternate way of installing the modules using the
+    <command>cpan</command> shell <command>install</command> command. The
+    command automatically downloads the source from the CPAN archive, extracts
+    it, runs the compilation, testing and installation commands mentioned
+    above, and removes the build source tree. You may still need to install
+    dependent library packages before running the automated installation
+    method.</para>
 
-    <para>The first time you run this command, you'll be prompted to enter some
-    information regarding download locations and methods. This information is
-    retained in files located in <filename 
class='directory'>~/.cpan</filename>.
-    Start the perl shell with the following command as the
-    <systemitem class="username">root</systemitem> user:</para>
+    <para>The first time you run <command>cpan</command>, you'll be prompted
+    to enter some information regarding download locations and methods. This
+    information is retained in files located in
+    <filename class='directory'>~/.cpan</filename>. Start the
+    <command>cpan</command> shell by issuing '<command>cpan</command>' as the
+    <systemitem class="username">root</systemitem> user. Any module may now be
+    installed from the
+    <emphasis role='underlined'><prompt>cpan&gt;&nbsp;</prompt></emphasis>
+    prompt with the command:</para>
 
-<screen role="root"><userinput>perl -MCPAN -e shell</userinput></screen>
-
-    <para>Each module may now be installed from this shell with the
-    command:</para>
-
 <screen role="root"><userinput>install 
<replaceable>&lt;Module::Name&gt;</replaceable></userinput></screen>
 
-    <para>For additional commands and help, type 
<command>help</command>.</para>
+    <para>For additional commands and help, issue '<command>help</command>'
+    from the
+    <emphasis role='underlined'><prompt>cpan&gt;&nbsp;</prompt></emphasis>
+    prompt.</para>
 
     <para>Alternatively, for scripted or non-interactive installations, use the
     following syntax as the
-    <systemitem class="username">root</systemitem> user:</para>
+    <systemitem class="username">root</systemitem> user to install one or more
+    modules:</para>
 
-<screen role="root"><userinput>perl -MCPAN -e 'install 
<replaceable>&lt;Module::Name&gt;</replaceable>'</userinput></screen>
+<screen role="root"><userinput>cpan -i <replaceable>&lt;Module1::Name&gt; 
&lt;Module2::Name&gt;</replaceable></userinput></screen>
 
+    <para>Review the <filename>cpan.1</filename> man page for additional
+    parameters you can pass to <command>cpan</command> on the command
+    line.</para>
+
   </sect2>
 
 </sect1>

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml       2006-04-22 20:06:19 UTC 
(rev 5910)
+++ trunk/BOOK/introduction/welcome/changelog.xml       2006-04-22 21:12:34 UTC 
(rev 5911)
@@ -45,6 +45,11 @@
       <para>April 22nd, 2006</para>
       <itemizedlist>
         <listitem>
+          <para>[randy] - Modified the method of using cpan in the Perl
+          Modules instructions, thanks to William Zhou for the
+          suggestion.</para>
+        </listitem>
+        <listitem>
           <para>[bdubbs] - Updated to iptables-1.3.5.</para>
         </listitem>
         <listitem>

Modified: trunk/BOOK/stylesheets/blfs.css
===================================================================
--- trunk/BOOK/stylesheets/blfs.css     2006-04-22 20:06:19 UTC (rev 5910)
+++ trunk/BOOK/stylesheets/blfs.css     2006-04-22 21:12:34 UTC (rev 5911)
@@ -447,3 +447,7 @@
 .simplelist {
   background-color: #f0fff0; 
 }
+
+.underlined {
+  text-decoration: underline;
+}

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to