Under Microsoft Windows, there are several popular Perl distributions.
This is Strawberry Perl and ActivePerl. The first is designed exclusively for Windows, the second is going under different platforms (the full list can be found on the official website). It is important to note that in ActivePerl, the modules are distributed in a ready-made form, and it so happens that you have to wait until the repositories are updated.
In this small HowTo, I will explain how to prepare a Perl workbench from sorts.
Training
')
For the assembly we need: the compiler and the SDK.
1. Download and install
Visual C ++ Express .
2. Microsoft Windows SDK can be downloaded
here.After installation, you must register the path in the PATH. To do this, go to "Advanced system settings - environment variables ..."
Add to PATH: C: \ Program Files \ Microsoft Visual Studio 9.0 \ VC \ bin and click OK.

3. Download the source code for the stable branch of Perl (
5.10.1 ) and unpack the archive into any folder.
open win32 / Makefile in text editor
Set variables INST_DRV, INST_TOP, CCTYPE.
In my case CCTYPE = MSVC90FREE (maybe you have another version of the studio).

The rest can not be changed.
Assembly
Run the terminal (cmd.exe) and go to the folder with / win32 files.
C:\BUILD\perl-5.10.1\win32> call VCVARS32.BAT
C:\BUILD\perl-5.10.1\win32> nmake
The process has started :)

C:\BUILD\perl-5.10.1\win32> nmake test
C:\BUILD\perl-5.10.1\win32> nmake install
After installation, add the path to the pearl to the PATH.
C: \ perl-5.10.1l \ bin; C: \ perl-5.10.1 \ site \ bin
You can also define PERL5LIB.
Is done. We start the terminal, then call VCVARS32.BAT, and start installing the necessary modules with CPAN
C:\> cpan LWP::UserAgent
C:\> cpan WWW::Mechanize
...