You can read Dave Roth's articles published in the Windows IT Pro magazine (formally known as Windows .NET Magazine) that use Perl to accomplish interesting tasks.
Our Administrator's Handbook book is here and not a moment too soon!
Win32 Perl Scripting: Administrator's Handbook
The 2nd edition of our
Win32 Perl Programming: Standard
Extensions
is available.
![]() |
Are you searching for a children's bike trailer? |
![]() |
Would you like to try growing an avocado plant? |
![]() |
Easily lose weight by increasing your metabolism. |
![]() |
What, exactly, is a Calorie? |
![]() |
Want to know about schooling your child using the Montessori method. |
Check out our recommended reading list.
For all of those who are using Perl 5.005 there is the Perl Package Manager (the PPM.PL script) utility that comes with ActiveState's version of Perl (aka ActivePerl). This utility will download and install any available packages and extensions. ActiveState Tool Corp. has a FAQ regarding the Perl Package Manager. Packages available from Roth Consulting:These extensions were compiled explicity for the PERL_OBJECT enabled versions of Perl 5.005 such as ActivePerl and the core distirubtion (if it has been compiled with the PERL_OBJECT macro defined).
|
A typical example of it's use. Here we are looking for all Registry extensions that are available:
C:\Perl\bin>perl ppm.pl PPM interactive shell (0.9.4) - type 'help' for available commands. PPM> search registry Packages available from http://www.ActiveState.com/packages: Bit-ShiftReg Win32-Registry Win32-TieRegistry PPM>
In this case we are installing the Win32::TieRegistry extension:
C:\Perl\bin>perl ppm.pl PPM interactive shell (0.9.4) - type 'help' for available commands. PPM> install Win32-TieRegistry Install package 'Win32-TieRegistry?' (y/N): y Installing C:\perl\5.0\html\lib\site\Win32\TieRegistry.html Installing C:\perl\5.0\htmlhelp\pkg-TieRegistry.chm Installing C:\perl\5.0\htmlhelp\pkg-TieRegistry.hhc Installing C:\perl\5.0\site\lib\Win32\TieRegistry.pm Writing c:\perl\5.0\site\lib/auto/Win32-TieRegistry/.packlist PPM>quit c:\Perl\bin
By default the script will search ActiveState's package repository. You can add other repositories to the list by using the set repository command. In this case we are adding a repository called RothConsulting and provide an URL which contains the list of packages:
More recent versions of PPM use the 'repository' (or 'rep' for short) command (as opposed to 'set'):
C:\Perl\bin>>perl ppm.pl PPM interactive shell (0.9.4) - type 'help' for available commands. PPM> set repository RothConsulting http://www.roth.net/perl/packages PPM> set Commands will be confirmed. Temporary files will be deleted. Case-insensitive searches will be performed. Package installations will continue if a dependency cannot be installed. Screens will not pause. Current PPD repository paths: ActiveState Package Repository: http://www.ActiveState.com/packages RothConsulting: http://www.roth.net/perl/packages Packages will be installed under: c:\perl\5.0 Packages will be built under: c:\temp PPM>
c:\Perl\bin>ppm PPM - Programmer's Package Manager version 3.1. Copyright (c) 2001 ActiveState Corp. All Rights Reserved. ActiveState is a devision of Sophos. Entering interactive shell. Using Term::ReadLine::Stub as readline library. Type 'help' to get started. ppm> rep add "Roth Consulting" http://www.roth.net/perl/packages Repositories: [1] ActiveState PPM2 Repository [2] ActiveState Package Repository [3] Roth Consulting ppm>