in reply to Perl Threads

...I have to declare a thread above Tk

use is executed at compile time, so putting use Tk below the my $thr=... statement does not have the effect of executing it afterwards...  See require.

Replies are listed 'Best First'.
Re^2: Perl Threads
by Anonymous Monk on Feb 10, 2012 at 19:08 UTC
    Same problem. Even if I use require and then import.