I've modified Msg.pm to use UDP and it's almost working. The last snag seems to be that when I use sysread($sock, $buf, 4) to get the length of the message sysread returns the appropriate 4 bytes but the remainder of the message appears to have been read and discarded.
Where/Why did my message body vanish?
Thats it, I was stuck thinking TCP while using UDP and with UDP a read of any size slurps the entire message body regardless of the length you give to recv/sysread
I switch to grabing the whole messages with recv and I'm taking it apart with no trouble.
TNX.