sharing fileglobs

S

Sven Bachmann

Hello,

I'd like to use perl threads but I encountered a problem when I want to
share fileglobs stored in a hash.
Google only showed me, that sharing fileglobs isn't possible yet.

Maybe I don't need fileglobs. So I ask you if there is another
possibility to share open sockets (stored in a hash) with threads?

Thank you in advance.
Sven
 
S

Sven Bachmann

I'd like to use perl threads but I encountered a problem when I want to
share fileglobs stored in a hash.
Google only showed me, that sharing fileglobs isn't possible yet.

Maybe I don't need fileglobs. So I ask you if there is another
possibility to share open sockets (stored in a hash) with threads?

Ingo Menger answered me in de.comp.lang.perl.misc. The solution is to
share not the glob but instead the fileno. To assign it again use
fdopen.

Bye
Sven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,440
Latest member
YoungBorel

Latest Threads

Top