NaSe77 has asked for the wisdom of the Perl Monks concerning the following question:
i have a little problem : i'd like to write a frontend for a script that i have written , so far no problem the wasn't to be solved but now when i would like to start the script more than one time withe the same instannce of the frontend i get:
the thing is i haveerror: coudn't locate object OPEN via package Tk::Event::IO (perhaps y +ou forgot to load Tk::Event::IO?) at blah line blahblah
notes:($pid = open (CHILD,"-|"))||exec "perl script.pl"; $main->fileevent(\*CHILD,'readable',[\&fill_text_status]); sub fill_text_status{ $_ =<CHILD>; if (/^EOF$/){ #child send EOF if done $status->configure(-text=>"Status area"); close CHILD; return; } chomp; $status->configure(-text=>$_); }
NaSe
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problems with fileevent
by NaSe77 (Monk) on May 17, 2002 at 12:52 UTC |