***** infoCopter.com/perl *****

Perl TK

GUI development in Perl

See also [ perl/GUI-Programming/index.html ]

  1. http://w4.lns.cornell.edu/~pvhp/ptk/doc/
  2. Perl/Tk FAQs

A simple "Hello World!" widget script could be written as follows:

    #!/usr/bin/perl -w

    use strict;
    use Tk;

    my $main = new MainWindow;
    $main->Label(-text => 'Hello World!'
                 )->pack;
    $main->Button(-text => 'Quit',
                  -command => sub{exit}
                  )->pack;
    MainLoop;
© reto :)