My suspicion is that you are running into erratic timing issues in the Tk event loop. I'd bet that sticking a $mw->update; in where you were putting the sleep command would also mitigate the problem. That would force the event loop to empty the queued task buffer and ensure it actually performs the task before it checks that the task results are correct.
If that turns out to be the case, it is probably worth submitting a bug report. Slaven has been pretty responsive about fixing problems in the past, especially if you include a patch.
In reply to Re: Tk: Cannot install from CPAN sometimes.
by thundergnat
in thread Tk: Cannot install from CPAN sometimes.
by choroba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |