© William "Bo" Rothwell of One Course Source, Inc. 2020
W. ". RothwellPro Perl Programminghttps://doi.org/10.1007/978-1-4842-5605-3_10

10. Perl/TK Basics

William “Bo” Rothwell1 
San Diego, CA, USA

The idea behind Tk is to create an easy-to-use interface between Perl and Windows. In order to do this, Tk builds on top of the X Window System (or Microsoft Windows) to create "sub-windows" that contain buttons, menu bars, scroll bars, and other windows components. These components are called widgets .

Widgets are controls that are built into Motif (the heart of the X Window System on UNIX platforms). In fact, you can think of Tk as the process of putting widgets together in an application until you have the graphic interface you need.

The TK module

Get Pro Perl Programming: From Professional to Advanced now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.