in reply to 2 questions about Perl/Tk and Perl
sub scan { $listbox->insert('end', "Scanning..."); open CMD, qq[perl -lne "foreach (glob '$_/*'){print if !/Makefile[.inc]*$/}" + zz.lis] or die $!; while( <CMD> ) { chomp; $listbox->insert( 'end', $_ ); DoOneEvent(); } $listbox->insert('end', "Done."); }
Though you should probably look at Tk::Event and/or Tk::fileevent
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 2 questions about Perl/Tk and Perl
by unknown-monk (Novice) on Apr 04, 2010 at 05:58 UTC |