in reply to ithreads not behaving as expected
This: my $thr = threads->new(\sub1);
should be my $thr = threads->new(\&sub1);
If you had warnings enabled, you'd've got: Thread 1 terminated abnormally: Not a CODE reference at ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: ithreads not behaving as expected
by BrowserUk (Patriarch) on Jul 16, 2009 at 23:38 UTC | |
|
Re^2: ithreads not behaving as expected
by madorb (Novice) on Jul 16, 2009 at 22:16 UTC |