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.)
In reply to Re^5: syswrite numbers, not strings
by Anonymous Monk
in thread syswrite numbers, not strings
by akujbida
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |