in reply to Re^2: Message Passing b/w processes , that works both in windows and Linux
in thread Message Passing b/w processes , that works both in windows and Linux
You use read($sock) not <$sock> (or sysread or recv).
Note that you might also run into the problem I was able to work around at Re^2: ActiveState woes : Is it EOF-blind? (perl bug).
And you probably want to replace fork with either Win32::Process::Create( $^X, qq(perl "$0" ...), ... ) or system( 1, $^X, $0, ... ) (this Win32-specific use of system is documented in perlport). So write a wrapper that uses fork if not on Win32.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Message Passing b/w processes , that works both in windows and Linux (read)
by ikegami (Patriarch) on Jun 09, 2009 at 01:24 UTC | |
by tye (Sage) on Jun 09, 2009 at 01:58 UTC |