in reply to Perl:TK - standard output to text widget
If you want to process things line by line, try opening a pipe:my $out = `command`; $text->insert('end', $out);
open OUT "command |" or die "Could not open command: $!\n"; while (my $line = <OUT>) { # process $line ... $text->insert('end', $line); }
-Mark
|
|---|