in reply to Need help with program using Perl Tk
You are blocking in list_dir_enviar.
You should never1 use sleep in a Tk script. It stops everything.
Use after to schedule polling your directory.
1There may be some case where it is desirable to use sleep in a Tk script, but I've never run across one and can't imagine what it would be.
TGI says moo
|
|---|