Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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
Replies are listed 'Best First'.
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 studying the Monastery: (10)
As of 2015-07-28 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls