in reply to Re^2: Thread local variables in Thread::Pool::Simple
in thread Thread local variables in Thread::Pool::Simple

You can't. The object doesn't not provide a means of accessing the value you pass to init. But if it provided an accessor, I'm with Anonymous Monk: use arrows.

Say the accessor is named "init",

$pool->init # Returns the array ref passed to the constructor. ->[0] # Access to the first element of the referenced array. ->(); # Call the referenced sub.