Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Can't instantiate Thread::Pool

by Corion (Pope)
on Sep 20, 2011 at 15:01 UTC ( #926962=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Can't instantiate Thread::Pool
Select or Download Code
Re^2: Can't instantiate Thread::Pool
by alain_desilets (Beadle) on Sep 20, 2011 at 15:22 UTC
    Oh, I see. I was looking at the documentation for version 0.1:

    http://search.cpan.org/~micb/ThreadPool-0.1/Pool.pm#SYNOPSIS

    which was the first hit that came on Google. I now see that I should be using the doc for version 0.3:

    http://search.cpan.org/~elizabeth/Thread-Pool-0.33/lib/Thread/Pool.pm#SYNOPSIS

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://926962]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2014-10-25 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (146 votes), past polls