http://qs321.pair.com?node_id=1173828


in reply to sysread/syswrite wrappers

Reminds me of my struggles with A Game Using TCP Sockets. I haven't seen the code fore several years, so it might me only tangentially relevant, I definitely don't remember using EINTR.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: sysread/syswrite wrappers
by vsespb (Chaplain) on Oct 12, 2016 at 12:58 UTC
    Yep, that your post links to my post written at y2010. Well, that time it was surprise for me that I should use syswrite and cannot use, say, eof(), but now it's not surprise, I know how to workaround this and everything works on production and well tested. But now I wondering why nobody else inventing wrappers for sysread and maybe there is simplier way..