Perl Tutorials - Herong's Tutorial Examples - v6.01, by Dr. Herong Yang
Install ActivePerl on Windows Systems
This section provides a tutorial example on how to install ActivePerl on a Windows computer.
If you are using a Windows system and want to run Perl scripts, you can install the free binary package, ActivePerl, provided by ActiveState. Here is what I did to install ActivePerl on my Windows computer.
1. Go to https://www.activestate.com/products/perl/, I see the ActiveState Perl download page.
2. Click on "Download Perl 5.32" button. I see the login page.
3. Log in with your ActiveState account, or sign up a new account. I see the new project page.
4. Select "Perl > 5.34.0 > Windows 10" and click "Create Runtime". I see the "Download & Install Runtime" comment.
5. Copy the command and run it in a command window:
herong> powershell -Command \ "& $([scriptblock]::Create((New-Object Net.WebClient).DownloadString \ ('https://platform.activestate.com/dl/cli/pdli01/install.ps1'))) \ -activate-default herong/Perl-5.34.0-Windows" - Preparing Installer for State Tool Package Manager... Done - Installing State Tool Package Manager The State Tool lets you install and manage your language runtimes. ActiveState collects usage statistics and diagnostic data about failures. By using the State Tool Package Manager you agree to the terms of ActiveState’s Privacy Policy, available at: https://www.activestate.com/company/privacy-policy - Downloading State Tool version 0.32.0-SHA7474314... Done - Installing State Tool to C:\Users\herong\AppData\Local\ActiveState\StateTool\release... Done
4. Open a new command window, and type in "perl -v". If you see the following output, your installation is ok.
herong> perl -v This is perl 5, version 34, subversion 0 (v5.34.0) built for MSWin32-x64-multi-thread Copyright 1987-2021, Larry Wall Binary build 34.0r4 provided by ActiveState http://www.ActiveState.com Built Wed Nov 17 04:20:44 2021 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Note that if you have an older version of ActivePerl installed on your Windows system, you should uninstalled it first and remove the content of the folder: C:\perl, before installing the new version.
Table of Contents
►ActivePerl on Windows Systems
►Install ActivePerl on Windows Systems
Running Perl Scripts on Windows Systems
Data Types: Values and Variables
Expressions, Operations and Simple Statements
Name Spaces and Perl Module Files
Hard References - Addresses of Memory Objects
Objects (or References) and Classes (or Packages)
Typeglob and Importing Identifiers from Other Packages
String Built-in Functions and Performance
File Handles and Data Input/Output
Open Directories and Read File Names
File System Functions and Operations
Socket Communication Over the Internet
XML::Simple Module - XML Parser and Generator
SOAP::Lite - SOAP Server-Client Communication Module
Perl Programs as IIS Server CGI Scripts
CGI (Common Gateway Interface)
XML-RPC - Remote Procedure Call with XML and HTTP
RPC::XML - Perl Implementation of XML-RPC
Integrating Perl with Apache Web Server
CGI.pm Module for Building Web Pages
LWP::UserAgent and Web Site Testing
Converting Perl Script to Executable Binary