Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

702 lines
28 KiB

  1. If you read this file _as_is_, just ignore the funny characters you
  2. see. It is written in the POD format (see pod/perlpod.pod) which is
  3. specially designed to be readable as is.
  4. =head1 NAME
  5. perlwin32 - Perl under Win32
  6. =head1 SYNOPSIS
  7. These are instructions for building Perl under Windows (9x, NT and
  8. 2000).
  9. =head1 DESCRIPTION
  10. Before you start, you should glance through the README file
  11. found in the top-level directory to which the Perl distribution
  12. was extracted. Make sure you read and understand the terms under
  13. which this software is being distributed.
  14. Also make sure you read L<BUGS AND CAVEATS> below for the
  15. known limitations of this port.
  16. The INSTALL file in the perl top-level has much information that is
  17. only relevant to people building Perl on Unix-like systems. In
  18. particular, you can safely ignore any information that talks about
  19. "Configure".
  20. You may also want to look at two other options for building
  21. a perl that will work on Windows NT: the README.cygwin and
  22. README.os2 files, each of which give a different set of rules to
  23. build a Perl that will work on Win32 platforms. Those two methods
  24. will probably enable you to build a more Unix-compatible perl, but
  25. you will also need to download and use various other build-time and
  26. run-time support software described in those files.
  27. This set of instructions is meant to describe a so-called "native"
  28. port of Perl to Win32 platforms. The resulting Perl requires no
  29. additional software to run (other than what came with your operating
  30. system). Currently, this port is capable of using one of the
  31. following compilers:
  32. Borland C++ version 5.02 or later
  33. Microsoft Visual C++ version 4.2 or later
  34. Mingw32 with GCC version 2.95.2 or better
  35. The last of these is a high quality freeware compiler. Support
  36. for it is still experimental. (Older versions of GCC are known
  37. not to work.)
  38. This port currently supports MakeMaker (the set of modules that
  39. is used to build extensions to perl). Therefore, you should be
  40. able to build and install most extensions found in the CPAN sites.
  41. See L<Usage Hints> below for general hints about this.
  42. =head2 Setting Up
  43. =over 4
  44. =item Make
  45. You need a "make" program to build the sources. If you are using
  46. Visual C++ under Windows NT or 2000, nmake will work. All other
  47. builds need dmake.
  48. dmake is a freely available make that has very nice macro features
  49. and parallelability.
  50. A port of dmake for Windows is available from:
  51. http://www.cpan.org/authors/id/GSAR/dmake-4.1pl1-win32.zip
  52. (This is a fixed version of the original dmake sources obtained from
  53. http://www.wticorp.com/dmake/. As of version 4.1PL1, the original
  54. sources did not build as shipped and had various other problems.
  55. A patch is included in the above fixed version.)
  56. Fetch and install dmake somewhere on your path (follow the instructions
  57. in the README.NOW file).
  58. There exists a minor coexistence problem with dmake and Borland C++
  59. compilers. Namely, if a distribution has C files named with mixed
  60. case letters, they will be compiled into appropriate .obj-files named
  61. with all lowercase letters, and every time dmake is invoked
  62. to bring files up to date, it will try to recompile such files again.
  63. For example, Tk distribution has a lot of such files, resulting in
  64. needless recompiles everytime dmake is invoked. To avoid this, you
  65. may use the script "sncfnmcs.pl" after a successful build. It is
  66. available in the win32 subdirectory of the Perl source distribution.
  67. =item Command Shell
  68. Use the default "cmd" shell that comes with NT. Some versions of the
  69. popular 4DOS/NT shell have incompatibilities that may cause you trouble.
  70. If the build fails under that shell, try building again with the cmd
  71. shell.
  72. The nmake Makefile also has known incompatibilities with the
  73. "command.com" shell that comes with Windows 9x. You will need to
  74. use dmake and makefile.mk to build under Windows 9x.
  75. The surest way to build it is on Windows NT, using the cmd shell.
  76. Make sure the path to the build directory does not contain spaces. The
  77. build usually works in this circumstance, but some tests will fail.
  78. =item Borland C++
  79. If you are using the Borland compiler, you will need dmake.
  80. (The make that Borland supplies is seriously crippled and will not
  81. work for MakeMaker builds.)
  82. See L</"Make"> above.
  83. =item Microsoft Visual C++
  84. The nmake that comes with Visual C++ will suffice for building.
  85. You will need to run the VCVARS32.BAT file, usually found somewhere
  86. like C:\MSDEV4.2\BIN. This will set your build environment.
  87. You can also use dmake to build using Visual C++; provided, however,
  88. you set OSRELEASE to "microsft" (or whatever the directory name
  89. under which the Visual C dmake configuration lives) in your environment
  90. and edit win32/config.vc to change "make=nmake" into "make=dmake". The
  91. latter step is only essential if you want to use dmake as your default
  92. make for building extensions using MakeMaker.
  93. =item Mingw32 with GCC
  94. GCC-2.95.2 binaries can be downloaded from:
  95. ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/
  96. You also need dmake. See L</"Make"> above on how to get it.
  97. The GCC-2.95.2 bundle comes with Mingw32 libraries and headers.
  98. Make sure you install the binaries that work with MSVCRT.DLL as indicated
  99. in the README for the GCC bundle. You may need to set up a few environment
  100. variables (usually ran from a batch file).
  101. There are a couple of problems with the version of gcc-2.95.2-msvcrt.exe
  102. released 7 November 1999:
  103. =over
  104. =item *
  105. It left out a fix for certain command line quotes. To fix this, be sure
  106. to download and install the file fixes/quote-fix-msvcrt.exe from the above
  107. ftp location.
  108. =item *
  109. The definition of the fpos_t type in stdio.h may be wrong. If your
  110. stdio.h has this problem, you will see an exception when running the
  111. test t/lib/io_xs.t. To fix this, change the typedef for fpos_t from
  112. "long" to "long long" in the file i386-mingw32msvc/include/stdio.h,
  113. and rebuild.
  114. =back
  115. A potentially simpler to install (but probably soon-to-be-outdated) bundle
  116. of the above package with the mentioned fixes already applied is available
  117. here:
  118. http://downloads.ActiveState.com/pub/staff/gsar/gcc-2.95.2-msvcrt.zip
  119. ftp://ftp.ActiveState.com/pub/staff/gsar/gcc-2.95.2-msvcrt.zip
  120. =back
  121. =head2 Building
  122. =over 4
  123. =item *
  124. Make sure you are in the "win32" subdirectory under the perl toplevel.
  125. This directory contains a "Makefile" that will work with
  126. versions of nmake that come with Visual C++, and a dmake "makefile.mk"
  127. that will work for all supported compilers. The defaults in the dmake
  128. makefile are setup to build using the GCC compiler.
  129. =item *
  130. Edit the makefile.mk (or Makefile, if you're using nmake) and change
  131. the values of INST_DRV and INST_TOP. You can also enable various
  132. build flags. These are explained in the makefiles.
  133. You will have to make sure that CCTYPE is set correctly and that
  134. CCHOME points to wherever you installed your compiler.
  135. The default value for CCHOME in the makefiles for Visual C++
  136. may not be correct for some versions. Make sure the default exists
  137. and is valid.
  138. If you have either the source or a library that contains des_fcrypt(),
  139. enable the appropriate option in the makefile. des_fcrypt() is not
  140. bundled with the distribution due to US Government restrictions
  141. on the export of cryptographic software. Nevertheless, this routine
  142. is part of the "libdes" library (written by Eric Young) which is widely
  143. available worldwide, usually along with SSLeay (for example,
  144. "ftp://fractal.mta.ca/pub/crypto/SSLeay/DES/"). Set CRYPT_SRC to the
  145. name of the file that implements des_fcrypt(). Alternatively, if
  146. you have built a library that contains des_fcrypt(), you can set
  147. CRYPT_LIB to point to the library name. The location above contains
  148. many versions of the "libdes" library, all with slightly different
  149. implementations of des_fcrypt(). Older versions have a single,
  150. self-contained file (fcrypt.c) that implements crypt(), so they may be
  151. easier to use. A patch against the fcrypt.c found in libdes-3.06 is
  152. in des_fcrypt.patch.
  153. Perl will also build without des_fcrypt(), but the crypt() builtin will
  154. fail at run time.
  155. Be sure to read the instructions near the top of the makefiles carefully.
  156. =item *
  157. Type "dmake" (or "nmake" if you are using that make).
  158. This should build everything. Specifically, it will create perl.exe,
  159. perl56.dll at the perl toplevel, and various other extension dll's
  160. under the lib\auto directory. If the build fails for any reason, make
  161. sure you have done the previous steps correctly.
  162. =back
  163. =head2 Testing
  164. Type "dmake test" (or "nmake test"). This will run most of the tests from
  165. the testsuite (many tests will be skipped).
  166. There should be no test failures when running under Windows NT 4.0 or
  167. Windows 2000. Many tests I<will> fail under Windows 9x due to the inferior
  168. command shell.
  169. Some test failures may occur if you use a command shell other than the
  170. native "cmd.exe", or if you are building from a path that contains
  171. spaces. So don't do that.
  172. If you are running the tests from a emacs shell window, you may see
  173. failures in op/stat.t. Run "dmake test-notty" in that case.
  174. If you're using the Borland compiler, you may see a failure in op/taint.t
  175. arising from the inability to find the Borland Runtime DLLs on the system
  176. default path. You will need to copy the DLLs reported by the messages
  177. from where Borland chose to install it, into the Windows system directory
  178. (usually somewhere like C:\WINNT\SYSTEM32) and rerun the test.
  179. If you're using Borland compiler versions 5.2 and below, you may run into
  180. problems finding the correct header files when building extensions. For
  181. example, building the "Tk" extension may fail because both perl and Tk
  182. contain a header file called "patchlevel.h". The latest Borland compiler
  183. (v5.5) is free of this misbehaviour, and it even supports an
  184. option -VI- for backward (bugward) compatibility for using the old Borland
  185. search algorithm to locate header files.
  186. Please report any other failures as described under L<BUGS AND CAVEATS>.
  187. =head2 Installation
  188. Type "dmake install" (or "nmake install"). This will put the newly
  189. built perl and the libraries under whatever C<INST_TOP> points to in the
  190. Makefile. It will also install the pod documentation under
  191. C<$INST_TOP\$VERSION\lib\pod> and HTML versions of the same under
  192. C<$INST_TOP\$VERSION\lib\pod\html>. To use the Perl you just installed,
  193. you will need to add two components to your PATH environment variable,
  194. C<$INST_TOP\$VERSION\bin> and C<$INST_TOP\$VERSION\bin\$ARCHNAME>.
  195. For example:
  196. set PATH c:\perl\5.6.0\bin;c:\perl\5.6.0\bin\MSWin32-x86;%PATH%
  197. If you opt to comment out INST_VER and INST_ARCH in the makefiles, the
  198. installation structure is much simpler. In that case, it will be
  199. sufficient to add a single entry to the path, for instance:
  200. set PATH c:\perl\bin;%PATH%
  201. =head2 Usage Hints
  202. =over 4
  203. =item Environment Variables
  204. The installation paths that you set during the build get compiled
  205. into perl, so you don't have to do anything additional to start
  206. using that perl (except add its location to your PATH variable).
  207. If you put extensions in unusual places, you can set PERL5LIB
  208. to a list of paths separated by semicolons where you want perl
  209. to look for libraries. Look for descriptions of other environment
  210. variables you can set in L<perlrun>.
  211. You can also control the shell that perl uses to run system() and
  212. backtick commands via PERL5SHELL. See L<perlrun>.
  213. Perl does not depend on the registry, but it can look up certain default
  214. values if you choose to put them there. Perl attempts to read entries from
  215. C<HKEY_CURRENT_USER\Software\Perl> and C<HKEY_LOCAL_MACHINE\Software\Perl>.
  216. Entries in the former override entries in the latter. One or more of the
  217. following entries (of type REG_SZ or REG_EXPAND_SZ) may be set:
  218. lib-$] version-specific standard library path to add to @INC
  219. lib standard library path to add to @INC
  220. sitelib-$] version-specific site library path to add to @INC
  221. sitelib site library path to add to @INC
  222. vendorlib-$] version-specific vendor library path to add to @INC
  223. vendorlib vendor library path to add to @INC
  224. PERL* fallback for all %ENV lookups that begin with "PERL"
  225. Note the C<$]> in the above is not literal. Substitute whatever version
  226. of perl you want to honor that entry, e.g. C<5.6.0>. Paths must be
  227. separated with semicolons, as usual on win32.
  228. =item File Globbing
  229. By default, perl handles file globbing using the File::Glob extension,
  230. which provides portable globbing.
  231. If you want perl to use globbing that emulates the quirks of DOS
  232. filename conventions, you might want to consider using File::DosGlob
  233. to override the internal glob() implementation. See L<File::DosGlob> for
  234. details.
  235. =item Using perl from the command line
  236. If you are accustomed to using perl from various command-line
  237. shells found in UNIX environments, you will be less than pleased
  238. with what Windows offers by way of a command shell.
  239. The crucial thing to understand about the Windows environment is that
  240. the command line you type in is processed twice before Perl sees it.
  241. First, your command shell (usually CMD.EXE on Windows NT, and
  242. COMMAND.COM on Windows 9x) preprocesses the command line, to handle
  243. redirection, environment variable expansion, and location of the
  244. executable to run. Then, the perl executable splits the remaining
  245. command line into individual arguments, using the C runtime library
  246. upon which Perl was built.
  247. It is particularly important to note that neither the shell nor the C
  248. runtime do any wildcard expansions of command-line arguments (so
  249. wildcards need not be quoted). Also, the quoting behaviours of the
  250. shell and the C runtime are rudimentary at best (and may, if you are
  251. using a non-standard shell, be inconsistent). The only (useful) quote
  252. character is the double quote ("). It can be used to protect spaces
  253. and other special characters in arguments.
  254. The Windows NT documentation has almost no description of how the
  255. quoting rules are implemented, but here are some general observations
  256. based on experiments: The C runtime breaks arguments at spaces and
  257. passes them to programs in argc/argv. Double quotes can be used to
  258. prevent arguments with spaces in them from being split up. You can
  259. put a double quote in an argument by escaping it with a backslash and
  260. enclosing the whole argument within double quotes. The backslash and
  261. the pair of double quotes surrounding the argument will be stripped by
  262. the C runtime.
  263. The file redirection characters "<", ">", and "|" can be quoted by
  264. double quotes (although there are suggestions that this may not always
  265. be true). Single quotes are not treated as quotes by the shell or
  266. the C runtime, they don't get stripped by the shell (just to make
  267. this type of quoting completely useless). The caret "^" has also
  268. been observed to behave as a quoting character, but this appears
  269. to be a shell feature, and the caret is not stripped from the command
  270. line, so Perl still sees it (and the C runtime phase does not treat
  271. the caret as a quote character).
  272. Here are some examples of usage of the "cmd" shell:
  273. This prints two doublequotes:
  274. perl -e "print '\"\"' "
  275. This does the same:
  276. perl -e "print \"\\\"\\\"\" "
  277. This prints "bar" and writes "foo" to the file "blurch":
  278. perl -e "print 'foo'; print STDERR 'bar'" > blurch
  279. This prints "foo" ("bar" disappears into nowhereland):
  280. perl -e "print 'foo'; print STDERR 'bar'" 2> nul
  281. This prints "bar" and writes "foo" into the file "blurch":
  282. perl -e "print 'foo'; print STDERR 'bar'" 1> blurch
  283. This pipes "foo" to the "less" pager and prints "bar" on the console:
  284. perl -e "print 'foo'; print STDERR 'bar'" | less
  285. This pipes "foo\nbar\n" to the less pager:
  286. perl -le "print 'foo'; print STDERR 'bar'" 2>&1 | less
  287. This pipes "foo" to the pager and writes "bar" in the file "blurch":
  288. perl -e "print 'foo'; print STDERR 'bar'" 2> blurch | less
  289. Discovering the usefulness of the "command.com" shell on Windows 9x
  290. is left as an exercise to the reader :)
  291. One particularly pernicious problem with the 4NT command shell for
  292. Windows NT is that it (nearly) always treats a % character as indicating
  293. that environment variable expansion is needed. Under this shell, it is
  294. therefore important to always double any % characters which you want
  295. Perl to see (for example, for hash variables), even when they are
  296. quoted.
  297. =item Building Extensions
  298. The Comprehensive Perl Archive Network (CPAN) offers a wealth
  299. of extensions, some of which require a C compiler to build.
  300. Look in http://www.cpan.org/ for more information on CPAN.
  301. Note that not all of the extensions available from CPAN may work
  302. in the Win32 environment; you should check the information at
  303. http://testers.cpan.org/ before investing too much effort into
  304. porting modules that don't readily build.
  305. Most extensions (whether they require a C compiler or not) can
  306. be built, tested and installed with the standard mantra:
  307. perl Makefile.PL
  308. $MAKE
  309. $MAKE test
  310. $MAKE install
  311. where $MAKE is whatever 'make' program you have configured perl to
  312. use. Use "perl -V:make" to find out what this is. Some extensions
  313. may not provide a testsuite (so "$MAKE test" may not do anything or
  314. fail), but most serious ones do.
  315. It is important that you use a supported 'make' program, and
  316. ensure Config.pm knows about it. If you don't have nmake, you can
  317. either get dmake from the location mentioned earlier or get an
  318. old version of nmake reportedly available from:
  319. ftp://ftp.microsoft.com/Softlib/MSLFILES/nmake15.exe
  320. Another option is to use the make written in Perl, available from
  321. CPAN:
  322. http://www.cpan.org/authors/id/NI-S/Make-0.03.tar.gz
  323. You may also use dmake. See L</"Make"> above on how to get it.
  324. Note that MakeMaker actually emits makefiles with different syntax
  325. depending on what 'make' it thinks you are using. Therefore, it is
  326. important that one of the following values appears in Config.pm:
  327. make='nmake' # MakeMaker emits nmake syntax
  328. make='dmake' # MakeMaker emits dmake syntax
  329. any other value # MakeMaker emits generic make syntax
  330. (e.g GNU make, or Perl make)
  331. If the value doesn't match the 'make' program you want to use,
  332. edit Config.pm to fix it.
  333. If a module implements XSUBs, you will need one of the supported
  334. C compilers. You must make sure you have set up the environment for
  335. the compiler for command-line compilation.
  336. If a module does not build for some reason, look carefully for
  337. why it failed, and report problems to the module author. If
  338. it looks like the extension building support is at fault, report
  339. that with full details of how the build failed using the perlbug
  340. utility.
  341. =item Command-line Wildcard Expansion
  342. The default command shells on DOS descendant operating systems (such
  343. as they are) usually do not expand wildcard arguments supplied to
  344. programs. They consider it the application's job to handle that.
  345. This is commonly achieved by linking the application (in our case,
  346. perl) with startup code that the C runtime libraries usually provide.
  347. However, doing that results in incompatible perl versions (since the
  348. behavior of the argv expansion code differs depending on the
  349. compiler, and it is even buggy on some compilers). Besides, it may
  350. be a source of frustration if you use such a perl binary with an
  351. alternate shell that *does* expand wildcards.
  352. Instead, the following solution works rather well. The nice things
  353. about it are 1) you can start using it right away; 2) it is more
  354. powerful, because it will do the right thing with a pattern like
  355. */*/*.c; 3) you can decide whether you do/don't want to use it; and
  356. 4) you can extend the method to add any customizations (or even
  357. entirely different kinds of wildcard expansion).
  358. C:\> copy con c:\perl\lib\Wild.pm
  359. # Wild.pm - emulate shell @ARGV expansion on shells that don't
  360. use File::DosGlob;
  361. @ARGV = map {
  362. my @g = File::DosGlob::glob($_) if /[*?]/;
  363. @g ? @g : $_;
  364. } @ARGV;
  365. 1;
  366. ^Z
  367. C:\> set PERL5OPT=-MWild
  368. C:\> perl -le "for (@ARGV) { print }" */*/perl*.c
  369. p4view/perl/perl.c
  370. p4view/perl/perlio.c
  371. p4view/perl/perly.c
  372. perl5.005/win32/perlglob.c
  373. perl5.005/win32/perllib.c
  374. perl5.005/win32/perlglob.c
  375. perl5.005/win32/perllib.c
  376. perl5.005/win32/perlglob.c
  377. perl5.005/win32/perllib.c
  378. Note there are two distinct steps there: 1) You'll have to create
  379. Wild.pm and put it in your perl lib directory. 2) You'll need to
  380. set the PERL5OPT environment variable. If you want argv expansion
  381. to be the default, just set PERL5OPT in your default startup
  382. environment.
  383. If you are using the Visual C compiler, you can get the C runtime's
  384. command line wildcard expansion built into perl binary. The resulting
  385. binary will always expand unquoted command lines, which may not be
  386. what you want if you use a shell that does that for you. The expansion
  387. done is also somewhat less powerful than the approach suggested above.
  388. =item Win32 Specific Extensions
  389. A number of extensions specific to the Win32 platform are available
  390. from CPAN. You may find that many of these extensions are meant to
  391. be used under the Activeware port of Perl, which used to be the only
  392. native port for the Win32 platform. Since the Activeware port does not
  393. have adequate support for Perl's extension building tools, these
  394. extensions typically do not support those tools either and, therefore,
  395. cannot be built using the generic steps shown in the previous section.
  396. To ensure smooth transitioning of existing code that uses the
  397. ActiveState port, there is a bundle of Win32 extensions that contains
  398. all of the ActiveState extensions and most other Win32 extensions from
  399. CPAN in source form, along with many added bugfixes, and with MakeMaker
  400. support. This bundle is available at:
  401. http://www.cpan.org/authors/id/GSAR/libwin32-0.151.zip
  402. See the README in that distribution for building and installation
  403. instructions. Look for later versions that may be available at the
  404. same location.
  405. =item Running Perl Scripts
  406. Perl scripts on UNIX use the "#!" (a.k.a "shebang") line to
  407. indicate to the OS that it should execute the file using perl.
  408. Win32 has no comparable means to indicate arbitrary files are
  409. executables.
  410. Instead, all available methods to execute plain text files on
  411. Win32 rely on the file "extension". There are three methods
  412. to use this to execute perl scripts:
  413. =over 8
  414. =item 1
  415. There is a facility called "file extension associations" that will
  416. work in Windows NT 4.0. This can be manipulated via the two
  417. commands "assoc" and "ftype" that come standard with Windows NT
  418. 4.0. Type "ftype /?" for a complete example of how to set this
  419. up for perl scripts (Say what? You thought Windows NT wasn't
  420. perl-ready? :).
  421. =item 2
  422. Since file associations don't work everywhere, and there are
  423. reportedly bugs with file associations where it does work, the
  424. old method of wrapping the perl script to make it look like a
  425. regular batch file to the OS, may be used. The install process
  426. makes available the "pl2bat.bat" script which can be used to wrap
  427. perl scripts into batch files. For example:
  428. pl2bat foo.pl
  429. will create the file "FOO.BAT". Note "pl2bat" strips any
  430. .pl suffix and adds a .bat suffix to the generated file.
  431. If you use the 4DOS/NT or similar command shell, note that
  432. "pl2bat" uses the "%*" variable in the generated batch file to
  433. refer to all the command line arguments, so you may need to make
  434. sure that construct works in batch files. As of this writing,
  435. 4DOS/NT users will need a "ParameterChar = *" statement in their
  436. 4NT.INI file or will need to execute "setdos /p*" in the 4DOS/NT
  437. startup file to enable this to work.
  438. =item 3
  439. Using "pl2bat" has a few problems: the file name gets changed,
  440. so scripts that rely on C<$0> to find what they must do may not
  441. run properly; running "pl2bat" replicates the contents of the
  442. original script, and so this process can be maintenance intensive
  443. if the originals get updated often. A different approach that
  444. avoids both problems is possible.
  445. A script called "runperl.bat" is available that can be copied
  446. to any filename (along with the .bat suffix). For example,
  447. if you call it "foo.bat", it will run the file "foo" when it is
  448. executed. Since you can run batch files on Win32 platforms simply
  449. by typing the name (without the extension), this effectively
  450. runs the file "foo", when you type either "foo" or "foo.bat".
  451. With this method, "foo.bat" can even be in a different location
  452. than the file "foo", as long as "foo" is available somewhere on
  453. the PATH. If your scripts are on a filesystem that allows symbolic
  454. links, you can even avoid copying "runperl.bat".
  455. Here's a diversion: copy "runperl.bat" to "runperl", and type
  456. "runperl". Explain the observed behavior, or lack thereof. :)
  457. Hint: .gnidnats llits er'uoy fi ,"lrepnur" eteled :tniH
  458. =back
  459. =item Miscellaneous Things
  460. A full set of HTML documentation is installed, so you should be
  461. able to use it if you have a web browser installed on your
  462. system.
  463. C<perldoc> is also a useful tool for browsing information contained
  464. in the documentation, especially in conjunction with a pager
  465. like C<less> (recent versions of which have Win32 support). You may
  466. have to set the PAGER environment variable to use a specific pager.
  467. "perldoc -f foo" will print information about the perl operator
  468. "foo".
  469. If you find bugs in perl, you can run C<perlbug> to create a
  470. bug report (you may have to send it manually if C<perlbug> cannot
  471. find a mailer on your system).
  472. =back
  473. =head1 BUGS AND CAVEATS
  474. Some of the built-in functions do not act exactly as documented in
  475. L<perlfunc>, and a few are not implemented at all. To avoid
  476. surprises, particularly if you have had prior exposure to Perl
  477. in other operating environments or if you intend to write code
  478. that will be portable to other environments. See L<perlport>
  479. for a reasonably definitive list of these differences.
  480. Not all extensions available from CPAN may build or work properly
  481. in the Win32 environment. See L</"Building Extensions">.
  482. Most C<socket()> related calls are supported, but they may not
  483. behave as on Unix platforms. See L<perlport> for the full list.
  484. Signal handling may not behave as on Unix platforms (where it
  485. doesn't exactly "behave", either :). For instance, calling C<die()>
  486. or C<exit()> from signal handlers will cause an exception, since most
  487. implementations of C<signal()> on Win32 are severely crippled.
  488. Thus, signals may work only for simple things like setting a flag
  489. variable in the handler. Using signals under this port should
  490. currently be considered unsupported.
  491. Please send detailed descriptions of any problems and solutions that
  492. you may find to <F<[email protected]>>, along with the output produced
  493. by C<perl -V>.
  494. =head1 AUTHORS
  495. =over 4
  496. =item Gary Ng E<lt>[email protected]<gt>
  497. =item Gurusamy Sarathy E<lt>[email protected]<gt>
  498. =item Nick Ing-Simmons E<lt>[email protected]<gt>
  499. =back
  500. This document is maintained by Gurusamy Sarathy.
  501. =head1 SEE ALSO
  502. L<perl>
  503. =head1 HISTORY
  504. This port was originally contributed by Gary Ng around 5.003_24,
  505. and borrowed from the Hip Communications port that was available
  506. at the time. Various people have made numerous and sundry hacks
  507. since then.
  508. Borland support was added in 5.004_01 (Gurusamy Sarathy).
  509. GCC/mingw32 support was added in 5.005 (Nick Ing-Simmons).
  510. Support for PERL_OBJECT was added in 5.005 (ActiveState Tool Corp).
  511. Support for fork() emulation was added in 5.6 (ActiveState Tool Corp).
  512. Win9x support was added in 5.6 (Benjamin Stuhl).
  513. Last updated: 1 April 2001
  514. =cut