home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / ActivePerl-5.8.4.810-MSWin32-x86.msi / _f70a8d7bdc9f7a220a56169f17177ea9 < prev    next >
Encoding:
Text File  |  2004-06-01  |  13.1 KB  |  270 lines

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3.  
  4. <head>
  5. <title>ActivePerl faq1 - Availability and Installation</title>
  6. <link rel="STYLESHEET" href="../../Active.css" type="text/css" media="screen">
  7. </head>
  8.  
  9. <body>
  10.  
  11. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  12.   <tr>
  13.     <td class="block" valign="MIDDLE" width="100%" bgcolor="#cccccc"><strong>
  14.       <p class="block"> ActivePerl FAQ</p>
  15.       </strong></td>
  16.   </tr>
  17. </table>
  18. <ul>
  19.   <li><a href="#NAME">NAME</a></li>
  20.   <li><a href="#DESCRIPTION">DESCRIPTION</a>
  21.     <ul>
  22.       <li><a href="#What_is_Perl_">What is Perl?</a></li>
  23.       <li><a href="#Where_can_I_get_tons_of_informat">Where can I get tons of
  24.         information about Perl?</a></li>
  25.       <li><a href="#Where_is_the_Perl_for_Win32_inte">Where can I get the
  26.         ActivePerl interpreter?</a></li>
  27.       <li><a href="#What_do_I_get_with_ActiveState_s">What do I get with
  28.         ActivePerl?</a></li>
  29.       <li><a href="#How_do_I_install_the_Perl_for_Wi">How do I install
  30.         ActivePerl?</a></li>
  31.       <li><a href="#How_can_I_customize_my_installat">How can I customize my
  32.         installation of ActivePerl?</a></li>
  33.       <li><a href="#How_do_I_uninstall_Perl_for_Win3">How do I uninstall
  34.         ActivePerl?</a></li>
  35.       <li><a href="#What_is_ActiveX_Scripting_">What is ActiveX Scripting?</a></li>
  36.       <li><a href="#Is_there_an_ActiveX_Scripting_ve">Is there an ActiveX
  37.         Scripting version of Perl available?</a></li>
  38.       <li><a href="#When_I_double_click_the_perl_exe">When I double-click the
  39.         perl.exe icon in Explorer, I get</a></li>
  40.       <li><a href="#How_can_I_get_Perl_to_run_a_Perl">How can I get Perl to run
  41.         a Perl script at the 4DOS command line by</a></li>
  42.       <li><a href="#Can_I_build_perl_from_the_source">Can I build perl from the
  43.         source code?</a></li>
  44.     </ul>
  45.   </li>
  46.   <li><a href="#AUTHOR_AND_COPYRIGHT">AUTHOR AND COPYRIGHT</a></li>
  47. </ul>
  48. <hr>
  49. <h1><a name="NAME">NAME</a></h1>
  50. <p>ActivePerl faq1 - Availability and Installation</p>
  51. <hr>
  52. <h1><a name="DESCRIPTION">DESCRIPTION</a></h1>
  53. <p>Getting, installing, and using Perl.</p>
  54. <hr>
  55. <h2><a name="What_is_Perl_">What is Perl?</a></h2>
  56. <p>Perl is a scripting language widely used for system administration and
  57. programming on the World Wide Web. It originated in the UNIX community and has a
  58. strong UNIX slant, but usage on Windows is growing rapidly. ActivePerl is a port
  59. of core Perl to Windows.</p>
  60. <p>perl (small 'p') is the program used to interpret the Perl language.</p>
  61. <hr>
  62. <h2><a name="Where_can_I_get_tons_of_informat">Where can I get tons of
  63. information about Perl?</a></h2>
  64. <p>Extensive online documentation is included with Perl itself. You can read the
  65. documentation with the <code>perldoc</code> command, as in <code>perldoc
  66. document_name</code>. You should start with the perl document and the perlfaq
  67. document. For information on other ways of accessing the Perl documentation
  68. (including HTML versions of this documentation), see <a href="../ActivePerl-faq3.html#Where_can_I_get_documentation_on">Where
  69. can I get documentation on ActivePerl?</a>.</p>
  70. <p>To get more information about Perl, check out these URLs:</p>
  71. <ul>
  72.   <li>
  73.     <p><a href="http://www.ActiveState.com">http://www.ActiveState.com</a> - The
  74.     ActivePerl Home Page.</p>
  75.   </li>
  76.   <li>
  77.     <p><a href="http://www.perl.com">http://www.perl.com</a> - The Perl home
  78.     page.</p>
  79.   </li>
  80.   <li>
  81.     <p><a href="http://language.perl.com">http://language.perl.com</a> - The
  82.     Perl language home page.</p>
  83.   </li>
  84.   <li>
  85.     <p><a href="http://dir.yahoo.com/Computers_and_Internet/Programming_and_Development/Languages/Perl/">http://www.yahoo.com/Computers_and_Internet/Programming_Languages/Perl/</a>
  86.     - The Yahoo Perl page.</p>
  87.   </li>
  88. </ul>
  89. <p>There are several good books about Perl. The premier book on ActivePerl is <em>Learning
  90. Perl On Win32 Systems</em> By Schwartz, Olson, and Christiansen (O'Reilly &
  91. Associates, 1997). This is the Gecko book, and has a picture of a gecko (little
  92. chubby lizard with big toes and a smile) on the front cover.</p>
  93. <p>For general perl, two books to consider are <em>Programming Perl</em>, 2nd
  94. Edition, by Larry Wall, Tom Christiansen and Randal L. Schwartz (O'Reilly &
  95. Associates, 1996) and <em>Learning Perl</em>, by Randal L. Schwartz (O'Reilly
  96. & Associates, 1993). These are referred to by Perl enthusiasts as the Camel
  97. book and the Llama book, respectively.</p>
  98. <p>If you are new to Perl and there are any terms mentioned in this FAQ that you
  99. don't get, try one of the above resources. See the <em>perlbook</em> document
  100. that comes with Perl for more information.</p>
  101. <hr>
  102. <h2><a name="Where_is_the_Perl_for_Win32_inte">Where can I get the ActivePerl
  103. interpreter?</a></h2>
  104. <p>ActivePerl is available from the ActiveState home page.</p>
  105. <p>To download ActivePerl from ActiveState, look in this directory:</p>
  106. <pre>
  107.   <a href="http://www.ActiveState.com/ActivePerl">http://www.ActiveState.com/ActivePerl</a>
  108. </pre>
  109. <hr>
  110. <h2><a name="What_do_I_get_with_ActiveState_s">What do I get with ActivePerl?</a></h2>
  111. <p>ActivePerl is a complete, self-installing distribution of Perl based on the
  112. standard Perl sources. It is distributed online at the ActiveState site.</p>
  113. <p>"Perl for Win32" generally refers to ActivePerl for Windows.</p>
  114. <p>Perl for Win32 was developed by ActiveState Corporation (originally Hip
  115. Communications) for Microsoft Corporation. This effort was undertaken for
  116. inclusion in Microsoft's Windows NT Resource Kit.</p>
  117. <p>Since then, ActiveState and various Perl porters have worked to keep
  118. ActivePerl current with the standard release of Perl. The oneperl effort, a
  119. joint effort between ActiveState, O'Reilly, and various volunteers, has joined
  120. the Win32 and standard Perl source code into one common source tree.</p>
  121. <hr>
  122. <h2><a name="How_do_I_install_the_Perl_for_Wi">How do I install ActivePerl?</a></h2>
  123. <p>Simply double-click the archive you downloaded, and you will be guided
  124. through the installation process by the installation wizard. You can select the
  125. parts of the Perl package you want installed, and the location you want to
  126. install them to.</p>
  127. <hr>
  128. <h2><a name="How_do_I_uninstall_Perl_for_Win3">How do I uninstall ActivePerl?</a></h2>
  129. <p>Go to Add/Remove Programs in the Control Panel, choose ActivePerl from the
  130. list box, and click Remove.</p>
  131. <hr>
  132. <h2><a name="What_is_ActiveX_Scripting_">What is ActiveX Scripting?</a></h2>
  133. <p>ActiveX Scripting is a Microsoft technology that consists of script engines
  134. and script hosts. A script engine, such as PerlScript, VBScript, or JScript, is
  135. a programming language that can be embedded in a scripting host, such as Windows
  136. Scripting Host, Microsoft Exchange, and Active Server Pages (ASP).</p>
  137. <hr>
  138. <h2><a name="Is_there_an_ActiveX_Scripting_ve">Is there an ActiveX Scripting
  139. version of Perl available?</a></h2>
  140. <p>Yes. This is called PerlScript. It is part of ActivePerl, and can be
  141. optionally installed during installation.</p>
  142. <p>PerlScript can be used within any ActiveX Scripting Host such as Microsoft
  143. Internet Explorer 4.0, Microsoft Exchange, and the Windows Scripting Host.</p>
  144. <hr>
  145. <h2><a name="When_I_double_click_the_perl_exe">When I double-click the perl.exe
  146. icon in Explorer, I get an empty DOS window with a blinking cursor.</a></h2>
  147. <p>ActivePerl is a command-line program. It expects to be run from the command
  148. line, not from Explorer.</p>
  149. <p>If you want to run a Perl script, write the script out using a text editor
  150. like Notepad. A good starter program is:</p>
  151. <pre>
  152.     print "Hello, World!\n";
  153. </pre>
  154. <p>Save the program to a file (such as <em>C:\temp\hello.pl</em>). Now, start a
  155. command prompt window (sometimes erroneously called a DOS window), and type the
  156. following line at the command prompt:</p>
  157. <pre>
  158.     C:\> perl c:\temp\hello.pl
  159. </pre>
  160. <p>This should print out the words <code>Hello, World!</code> on the screen. You
  161. may have to do some fiddling with the <code>PATH</code> environment variable, or
  162. specify the full path name to <em>perl.exe</em>, in order for this to work.</p>
  163. <p><em>perl.exe</em> has a lot of nifty command-line arguments that can make
  164. your work easier. See <em>perlrun</em> for details.</p>
  165. <p>To answer the original question about what's happening when you start perl
  166. from an Explorer window rather than a command-line window: starting from
  167. Explorer is roughly the same as starting perl without any command line
  168. arguments. When perl is started without a script file specified on the command
  169. line, it expects to receive a Perl program as standard input, i.e., from the
  170. keyboard.</p>
  171. <p>The blinking cursor means perl is waiting for your input. You can actually
  172. type in a Perl program from the keyboard, and then tell perl to execute it by
  173. typing the Ctrl-Z, which is the end-of-file marker on Windows systems.</p>
  174. <hr>
  175. <h2><a name="How_can_I_get_Perl_to_run_a_Perl">How can I get Perl to run a Perl
  176. script at the 4DOS command line by typing the name of the script without the
  177. extension or "perl", just like a regular exe file?</a></h2>
  178. <p>See also <a href="ActivePerl-Winfaq4.html#How_do_I_associate_Perl_scripts_">How
  179. do I associate Perl scripts with perl?</a>.</p>
  180. <p>You can add a line like</p>
  181. <pre>
  182.     SET .PL=C:\PERL\BIN\PERL.EXE
  183. </pre>
  184. <p>to your <em>AUTOEXEC.BAT</em> file under Win95/98. You can then type
  185. <scriptname> with no extension to run your script, even if you are not in
  186. the same directory as the script and the script path is on your path.</p>
  187. <p>Note, however, that this only works with 4DOS, not <em>COMMAND.COM</em>, <em>CMD32.EXE</em>,
  188. or <em>CMD.EXE</em>. With those shells you still need to type</p>
  189. <pre>
  190.     perl scriptname.pl <arg> <arg> <arg>
  191. </pre>
  192. <hr>
  193. <h2><a name="Can_I_build_perl_from_the_source">Can I build perl from the source
  194. code?</a></h2>
  195. <p>The Perl source code includes complete instructions on building Perl. You can
  196. obtain the latest Perl source from:</p>
  197. <pre>
  198.     <a href="http://www.perl.com/CPAN/src/latest.tar.gz">http://www.perl.com/CPAN/src/latest.tar.gz</a>
  199. </pre>
  200. <p>Once you extract the source, read the <em>README</em> and <em>README.win32</em>
  201. files for instructions on compiling Perl.</p>
  202. <p>You can use the following C compilers to build a native Win32 build of Perl:</p>
  203. <dl>
  204.   <dt><strong><a name="item_Microsoft">Microsoft's Visual C++ (commercial
  205.     product)</a></strong></dt>
  206.   <dd>
  207.     <p>The Microsoft compiler, which includes compilation tools, API and tool
  208.     documentation, and an integrated development environment.</p>
  209.     <pre>
  210.     <a href="http://www.microsoft.com/visualc/">http://www.microsoft.com/visualc/</a>
  211. </pre>
  212.   </dd>
  213.   <dt><strong><a name="item_Borland">Borland C++ Builder (commercial product)</a></strong></dt>
  214.   <dd>
  215.     <p>Borland C++ provides an integrated development environment, compilation
  216.     tools, and documentation for building Win32 applications.</p>
  217.     <pre>
  218.     <a href="http://www.inprise.com/bcppbuilder/">http://www.inprise.com/bcppbuilder/</a>
  219. </pre>
  220.   </dd>
  221.   <dt><strong><a name="item_The">Mingw32 Libraries with GCC or EGCS Compilers
  222.     (free software)</a></strong></dt>
  223.   <dd>
  224.     <p>GCC and EGCS are both high quality freeware compilers that have been
  225.     ported to the Win32 platform. Together with the freely available Mingw32
  226.     libraries, they can be used to build Perl and extensions. They do not
  227.     provide an integrated development environment, and all of the tools must be
  228.     run from the command line. The Mingw32 library reuses some of the code
  229.     developed for Cygwin (see below).</p>
  230.     <p>EGCS/Mingw32 binaries can be obtained from:</p>
  231.     <pre>
  232.     <a href="ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/">ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/</a>
  233. </pre>
  234.     <p>GCC/Mingw32 binaries are available at:</p>
  235.     <pre>
  236.     <a href="http://agnes.dida.physik.uni-essen.de/~janjaap/mingw32/">http://agnes.dida.physik.uni-essen.de/~janjaap/mingw32/</a>
  237. </pre>
  238.   </dd>
  239.   <dt><strong><a name="item_Cygwin">Cygwin (free software)</a></strong></dt>
  240.   <dd>
  241.     <p>You can approximate a UNIX development and execution environment on Win32
  242.     with the Cygwin toolchain. This is a port of numerous GNU tools, and
  243.     includes an emulation API that provides access to many UNIX features not
  244.     found on Win32:</p>
  245.     <pre>
  246.     <a href="http://www.cygwin.com/">http://www.cygwin.com/</a>
  247. </pre>
  248.   </dd>
  249. </dl>
  250. <hr>
  251. <h1><a name="AUTHOR_AND_COPYRIGHT">AUTHOR AND COPYRIGHT</a></h1>
  252. <p>This FAQ was originally assembled and maintained by Evangelo Prodromou. It
  253. has been revised and updated by Brian Jepson of O'Reilly & Associates, David
  254. Grove, David Dmytryshyn and David Sparks of ActiveState.</p>
  255. <p>This FAQ is in the public domain. If you use it, however, please ensure that
  256. you give credit to the original authors. <!-- beginning of leaf footer-->
  257. </p>
  258. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  259.   <tr>
  260.     <td class="block" valign="MIDDLE" width="100%" bgcolor="#cccccc"><strong>
  261.       <p class="block"> ActivePerl FAQ</p>
  262.       </strong></td>
  263.   </tr>
  264. </table>
  265.     <!-- end of leaf footer-->
  266.  
  267. </body>
  268.  
  269. </html>
  270.