in reply to Can't instantiate Thread::Pool
The two lines you quoted are not "essentially the first two lines" of the synopsis. Looking at Thread::Pool, the first three lines are:
use Thread::Pool; $pool = Thread::Pool->new( {
So, likely ->new() takes a hashref instead of a list as arguments.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't instantiate Thread::Pool
by alain_desilets (Beadle) on Sep 20, 2011 at 15:22 UTC | |
by FunkyMonk (Bishop) on Sep 21, 2011 at 20:16 UTC |