Perl/Tk saves your favorite tools

Main
back: TclTk vs Perl/Tk -1
next: References in Perl

  • There is also a class Dialog, but this is just meant as example.
  • Because of the OO structure, you have local names for objects, instead of the global object paths of Tcl.
  • we may also write
       $d = Toplevel $mw -class => 'Dialog';
       title $d 'example';
       ...
    
    This list-notation syntax of OO-Perl looks more similar to the Tcl program, however list-notation has no stacking of calls. Your programs will be more verbose because of that.
  • Naming of components is not required, which saves you from looking for explanatory names for simple components in most cases.
  • MainWindow can be used in Perl/Tk on every spot where Tcl requires Toplevel: the MainWindow is a more flexible object.

 
TclTk vs Perl/Tk -1 References in Perl

Created by Mark Overmeer with PPresenter on 22 May 2000.