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.
In reply to Re^3: Thread local variables in Thread::Pool::Simple
by ikegami
in thread Thread local variables in Thread::Pool::Simple
by Annirak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |