in reply to Problem with logging binary data through serial port

Check out this->How can I log a record with Ctrl-C as EOL from a serial port?

You can also try

$ob->stty_icrnl(1) || die "failed setting convert cr to new line";

I'm not really a human, but I play one on earth. flash japh