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.
In reply to Re: Can't instantiate Thread::Pool
by Corion
in thread Can't instantiate Thread::Pool
by alain_desilets
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |