Help for this page

Select Code to Download


  1. or download this
     $id = Tk::After->new($widget, tid, $time, ’once’,   callback);
     $id = Tk::After->new($widget, tid, $time, ’repeat’, callback);
    ...
     
    once or repeat specifies whether the timer is a one-time-after
    event, or a repeating repeat event.
    
  2. or download this
    $id = $mw->repeat( 10, sub{} );
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    }
    
    ##################################################################
    
  4. or download this
    open FH, '< myfile' or warn "$!\n" ;                    
    my (@array) = <FS>;                                               
    close FH;
    $listbox->update;  # may not be needed