kcella has asked for the wisdom of the Perl Monks concerning the following question:
Everytime I run this, I get the following error (on platform win32): Can't undef active subroutine during global destruction.foreach my $key ( keys %$work ) { my $cap_run = $work->{ $key }->{ captured_run_name }; my $status = $work->{ $key }->{ statuscode }; push( @threads, threads->create( sub{ sleep 10; print "in thread +"; return 1; }, $key, $cap_run, $status ) ); } foreach my $thr ( @threads ) { push( @results, $thr->join ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl ithreads join help!!
by NetWallah (Canon) on May 22, 2004 at 03:22 UTC | |
|
Re: perl ithreads join help!!
by dave_the_m (Monsignor) on May 21, 2004 at 22:12 UTC | |
by kcella (Beadle) on May 24, 2004 at 12:50 UTC | |
by BrowserUk (Patriarch) on May 24, 2004 at 13:28 UTC | |
by dave_the_m (Monsignor) on May 25, 2004 at 00:13 UTC | |
|
Re: perl ithreads join help!!
by fluxion (Monk) on May 22, 2004 at 04:35 UTC |