alain_desilets has asked for the wisdom of the Perl Monks concerning the following question:
which is essentially the first two lines of the Synopsis for the module in the doc: http://search.cpan.org/~micb/ThreadPool-0.1/Pool.pm When I run the code, I get error message: Can't bless non-reference value at C:/Perl/site/lib/Thread/Pool.pm (loaded on demand from offset 2009 for 3872 bytes) line 90. What am I doing wrong? Thxuse Thread::Pool; my $pool = Thread::Pool->new(Min => 5, Max => 10);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't instantiate Thread::Pool
by Corion (Patriarch) on Sep 20, 2011 at 15:01 UTC | |
by alain_desilets (Beadle) on Sep 20, 2011 at 15:22 UTC | |
by FunkyMonk (Bishop) on Sep 21, 2011 at 20:16 UTC |