On tisdag, feb 25, 2003, at 14:44 Europe/Stockholm, Ramprasad wrote:
Hi All,
I am totally new to perl threads, so I am sorry if what I am asking is absolutely basic
Just today I compiled perl 5.8.0 with threads on my m/c (linux redhat 7.2).
I find that one of the test of my test script dies with errors
this is my script reduced to the minimum
#!/usr/bin/perl use Data::Dumper; use threads;
my ($t1,@list);
$t1 = threads->create(sub { print sleep(1) . "A $_ \n" foreach (0..5); });
print sleep(1)."B $_ \n" foreach (0..3);
@list = threads->list();print Dumper([\$t1,[EMAIL PROTECTED]);
$t1->join();
sleep(4);
Yes, this is a known bug that will be fixed in 5.8.1, if you undef $t1 and @list before exiting it shouldn't warn.
Arthur
