|Problems? Is your data what you think it is?|
Perl::TK - fileevent and script execution theoryby crabbdean (Pilgrim)
|on Mar 12, 2004 at 06:30 UTC||Need Help??|
crabbdean has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Fellow monks,
I just want to have small discussion on script execution in Perl::TK. If I have a script that takes a long time to execute I realise I have to call a "fileevent" on the file handle to read data without blocking and "freezing" the gui while the script executes.
Where I get stuck theory-wise is that what I'm executing would be a large directory read which in itself makes more subroutine calls while the filehandle is open. The callback is supposed to read and output what is read from the file handle. I'm just a little unclear how I'd write this into my MainLoop. The output is going to be put to a text widget or a log file.
Somethings not "clicking" for me. Am I making sense? Guidence appreciated.
The Funkster of Mirth
Programming these days takes more than a lone avenger with a compiler. - sam
RFC1149: A Standard for the Transmission of IP Datagrams on Avian Carriers