in reply to Re^4: syswrite numbers, not strings
in thread syswrite numbers, not strings
Remember this is Perl, where conversion between strings and numbers is almost always automatic and transparent, so "tinkering" might be too strong a word. Although one could argue the documentation isn't perfectly clear on this, it's at least strongly implied that syswrite writes a byte array / string, not individual numbers as bytes, so the 45 gets converted to "45", which is 0x34 0x35. (That's one of the reasons pack exists.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: syswrite numbers, not strings
by akujbida (Acolyte) on Dec 18, 2014 at 11:45 UTC |