http://www.perlmonks.org?node_id=1053880

pbrthemaster has asked for the wisdom of the Perl Monks concerning the following question:

I currently have a stand-alone script which I want to make it multi-threaded.

As of now, I tried two modules IPC::Shareable and forks::shared to share the objects but I didn't get any luck so far.

What happens with those modules is,

* IPC::Shareable : Once the object is created, IPC::Shareable causes something to call Linux::Inotify2->DESTROY which closes the file handle.

* forks::shared : Some capabilities in the object are lost. For ex, the fd returns *empty*

Can anyone pls tell how to share Linux::Inotify2 and Linux::Inotify2::Watch objects without losing capabilities?