Product Documentation

PDK 7.2 Documentation

Sample Programs

The Perl Dev Kit includes numerous example programs to help you get started. The examples are installed, by default, in C:\Program Files\ActiveState Perl Dev Kit 7.x\Samples. Each example has its own subdirectory. Some of the examples include README files in the sample subdirectories.

To use the examples written in VBScript (.vbs files), you must install the Windows Scripting Host (WSH).

Additional WSH information can be found at: http://msdn.microsoft.com/scripting

Perl Debugger

debugme.pl: A simple program to use with the Perl Debugger tutorial.

Location: Samples\Debugger\debugme.pl

PerlApp

demo: Shows some of the features of PerlApp.

Location: Samples\PerlApp

PerlCtrl

Re: A Perl Control that exposes Perl's regular expressions. Add pattern-matching and substitution capabilities to Visual Basic (including Microsoft Office apps), VC++, and other languages.

Location: Samples\PerlCtrl\Re

PerlNET

Pinvoke: This sample determines the path of the temporary directory and displays it in a messagebox.

Location: Samples\PerlNET\Pinvoke

Sample: Shows how to create an instance of an object, invoke methods through it, and access its properties.

Location: Samples\PerlNET\Sample

WinForms: Shows how .NET-compliant Perl code can make use of the Microsoft Winforms function.

Location: Samples\PerlNET\WinForms

WordCount: Demonstrates the creation of a Sample::WordCount object with an optional "text" property.

Location: Samples\PerlNET\WordCount

PerlSvc

PingSvc: This service pings a host and logs if the host is unreachable. A typical use would be to monitor a DSL/Cable connection for downtime.

Location: Samples\PerlSvc\PingSvc.pl

MyBackup: This service watches a directory tree for changes. It makes a backup copy whenever a file changes, keeping all versions of the file.

Location: Samples\PerlSvc\MyBackup.pl

PerlTray

Sample: This application shows various features of PerlTray, including checkmarks and radiobuttons on the popup menu.

Location: Samples\PerlTray\Sample

SlashTray: This application periodically checks Slashdot headlines and alerts to new stories with a balloon popup. All current Slashdot stories are directly accesible from the popup menu.

Location: Samples\PerlTray\SlashTray