Learning Perl/Tk

Author: Nancy Walsh
Publisher: O'Reilly & Associates
E-mail: info@ora.com
URL: http://www.ora.com/
Price: $32.95 US
ISBN: 1-56592-314-6
Reviewed by: Bill W. Cunningham
Learning Perl/Tk, by Nancy Walsh, is the first of what will undoubtedly be many books on this subject, and it will be a tough act to follow. This book is targeted for those just beginning windows programming in Perl/Tk on both UNIX and Windows platforms, although veteran programmers will find a wealth of detailed information in it as well.
Learning Perl/Tk is well-written and thoroughly researched. It begins with a brief history of the Perl and Tk languages. It tells exactly where to download the Perl/Tk module, how to unpack and install it, and how to test your installation to see if you are ready to write Perl/Tk programs.
Next is a general discourse on window geometry, and the concepts of the widget and the event loop. These are details the windows programmer must deal with that do not apply to the traditional Perl programmer. Ms. Walsh does a fine job of explaining these concepts in terms anyone can understand.
The majority of the book is devoted to a detailed description of the most commonly used window widgets: the button, check box, radio button, label, entry, scrollbar, list box, text box, canvas, scale, menu, frame and composite widgets such as the dialog box. Virtually every aspect pertaining to these widgets is covered in the minutest detail: color, placement, size, border size, style and functionality. Other widgets are available in Perl/Tk, but these are the most common ones, and in order not to get too far out in left field, the book limits its focus to these.
The author's code examples are written in an elegant, concise, easy-to-follow style. For example, the following code creates five text entry widgets, each in a different relief style, with the style's name displayed in the respective boxes:
foreach (qw/flat groove raised ridge sunken/) {
$e = $mw->Entry(-relief=> $_)->pack(-expand=> 1);
$e->insert('end', $_);
}
This example appears on page 112 of the book. Throughout, the author demonstrates an enviable command of the Perl language, particularly the object-oriented features.
The book does a great job of bringing the first-time Perl/Tk user up to speed. By the end of the second chapter, the reader will have at least five fully-functional windows programs up and running. And for the veteran programmer, the book goes into a level of detail about the various window widgets which should meet the most demanding needs.
There is something of a void of information for the intermediate-level programmer. For example, there is no discussion of how to create a text-entry widget, get some user input from the widget, and use Perl to do something useful with the input. The Perl/Tk module does come with many demo examples that basically fill this gap. I did notice a few minor typos in the book, but it was obvious even to me (a non-programmer) how to fix them. Almost all the code runs perfectly. I know, because I typed in and ran each example! Virtuous (i.e., lazy) programmers can download all the book's code from the O'Reilly web site (http://www.oreilly.com/catalog/lperltk/).
Learning Perl/Tk provides a simple yet thorough introduction to this newest method of writing windows programs, and will also be a valuable reference for the production programmer. There is room for more books on this subject at the intermediate level.
I believe anyone with an interest in Perl/Tk will benefit from reading this book, and I recommend it with enthusiasm.

Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Designing Electronics with Linux | May 22, 2013 |
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
- New Products
- Linux Systems Administrator
- Senior Perl Developer
- Technical Support Rep
- UX Designer
- Web & UI Developer (JavaScript & j Query)
- Designing Electronics with Linux
- Dynamic DNS—an Object Lesson in Problem Solving
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Featured Jobs
| Linux Systems Administrator | Houston and Austin, Texas | Host Gator |
| Senior Perl Developer | Austin, Texas | Host Gator |
| Technical Support Rep | Houston and Austin, Texas | Host Gator |
| UX Designer | Austin, Texas | Host Gator |
| Web & UI Developer (JavaScript & j Query) | Austin, Texas | Host Gator |
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?




9 hours 9 min ago
14 hours 55 min ago
15 hours 12 min ago
17 hours 5 min ago
18 hours 59 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 4 hours ago
1 day 9 hours ago
1 day 14 hours ago