NaSe77 has asked for the wisdom of the Perl Monks concerning the following question:
I search a way to redirect the STDERR of my programm into a nice Tk Window . I'm sure there is a easy way to do it, but if i tried it with using a fileevent
i got as error$main->fileevent(\*STDERR,'readable',[\&tackle_err]); sub tackle_err{ $_ = <STDERR>; my $error_window = $main->Toplevel(); $error_window -> Label ( -text => $_ )->pack; $error_window -> Button ( -text => "OK", -command => sub {$error_window->destroy} )->pack; }
thanks for your wisdom ...Use of uninitialized value in <HANDLE> at /usr/lib/perl5/site_perl/5.6 +.1/i386-linux/Tk/Event/IO.pm line 46.
NaSe
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: redirecting STDERR
by ozone (Friar) on May 16, 2002 at 10:06 UTC | |
by NaSe77 (Monk) on May 16, 2002 at 11:52 UTC | |
|
Re: redirecting STDERR
by particle (Vicar) on May 16, 2002 at 10:58 UTC | |
by NaSe77 (Monk) on May 16, 2002 at 11:05 UTC | |
by particle (Vicar) on May 16, 2002 at 11:39 UTC |