in reply to Re^2: Really Odd Bug With LWP and Device::SerialPort
in thread Really Odd Bug With LWP and Device::SerialPort
Well, there is some differences in the 'MAGIC' attributes before and after the substr (no MAGIC before, but MAGIC after) when you do Devel::Peek::Dump($data), but I don't know enough about that stuff to know what it means (non-magic unicode strings don't work with serial ports?).
This appears after the substr:
MAGIC = 0x6336a0
MG_VIRTUAL = &PL_vtbl_utf8
MG_TYPE = PERL_MAGIC_utf8(w)
MG_LEN = -1
I would think that you might want to specify the encoding when writing to a serial port though.
Update: Sounds somewhat similar to this issue?