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