Think about Loose Coupling | |
PerlMonks |
IO::Socket::INET file handlerby Razvanica (Novice) |
on Aug 22, 2007 at 08:59 UTC ( [id://634278]=perlquestion: print w/replies, xml ) | Need Help?? |
Razvanica has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks, I would like to know if it is possible to find the file handler from an IO::Socket::INET object. The thing is that I have a server which creates child processes to deal with different messages and I need to communicate with the same client from two different processes. I tried to send the socket object through a pipe but the second process is considering it a string and I get Can't locate object method "send" via package "IO::Socket::INET=GLOB(0x1987cf4)" (perhaps you forgot to load "IO::Socket::INET=GLOB(0x1987cf4)"?) So I thought I should send only the file handler. Is it a good idea? Thanks.
Back to
Seekers of Perl Wisdom
|
|