Skip to Main Content
Learning Perl/Tk
book

Learning Perl/Tk

by Nancy Walsh
January 1999
Beginner content levelBeginner
373 pages
9h 43m
English
O'Reilly Media, Inc.
Content preview from Learning Perl/Tk

Chapter 1. Introduction to Perl/Tk

There are many different modules available that extend the functionality of Perl. This book will concentrate on the Tk module. The Tk module allows us to easily add a graphical interface to our Perl scripts and still use all the features that make Perl great. Instead of requiring a typed command with some options or user input on the command line, your program is invoked with an icon or a simple command and the interface handles everything from there.

The Tk extension to Perl doesn't come with the standard distribution of Perl.[1] You'll need to get it separately from a CPAN site and install it. After you install the Tk module, you simply add use Tk; to the top of your Perl scripts.

[1] Unless you get the Win32 binary from CPAN, or another pre-built distribution such as ActiveState Perl.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Perl/Tk

Mastering Perl/Tk

Stephen Lidie, Nancy Walsh

Publisher Resources

ISBN: 1565923146Supplemental ContentCatalog PageErrata