in reply to Re: Threads From Hell #1: How To Share A Hash [SOLVED]
in thread Threads From Hell #1: How To Share A Hash [SOLVED]
I'm struggling with this:
$Q->enqueue( 1000..2000, (undef) x 4 );
The docs say:
->enqueue(LIST) Adds a list of items onto the end of the queue.
I dumped it:
karls-mac-mini:monks karl$ ./queue.pl bless({ # tied threads::shared::tie queue => [ # tied threads::shared::tie 1000 .. 2000, undef, undef, undef, undef, ], }, "Thread::Queue") Took 13.820966 seconds
What are the four undefs good for?
Best regards, Karl
P.S.: But my box is faster than yours ;-)
«The Crux of the Biscuit is the Apostrophe»
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Threads From Hell #1: How To Share A Hash [SOLVED]
by BrowserUk (Patriarch) on May 16, 2015 at 12:46 UTC | |
by karlgoethebier (Abbot) on May 17, 2015 at 09:01 UTC | |
by BrowserUk (Patriarch) on May 17, 2015 at 13:37 UTC | |
by karlgoethebier (Abbot) on May 17, 2015 at 14:29 UTC | |
by BrowserUk (Patriarch) on May 17, 2015 at 15:07 UTC | |
|