At 02:54 PM 7/30/02 +0200, Jenda Krynicky wrote:
>The problem with run-time "useit Foo" instead of compile-time "use
>Foo" is that the symbols are not exported while compiling, prototypes
>not "installed", constants not defined, etc. etc. etc.
Well, I guess YMMV... prototypes aren't much use in an OO environment
anyway, exports seems to work fine, judging from the testing that I
did. Constants may be another problem, let me check up on that...
>Would not it be simpler then to require() or do() the whole thread?
> use threads;
> $thread = threads->create(sub {do 'worker_thread.pl';})
> ...
Simpler by having to have a different file? That doesn't make it simpler
for me... ;-)
Liz