Help for this page

Select Code to Download


  1. or download this
    # a frame in my Tk main window
    my $frame = $mw->Frame;
    ...
    # here I try to tie STDOUT to the text widget
    my $widget = $OutputText->Subwidget("text");
    tie *STDOUT, ref $widget, $widget;
    
  2. or download this
    for ( 1..10 ) {
       sleep 10;
       print "foo\n";
    }