in reply to Re^4: Serial communication between perl and arduino
in thread Serial communication between perl and arduino

It's been quite a while since I have used Win32::SerialPort. Also, I don't have an arduino device to test code against.

Here's the approach that I would take to debug the issues. (NOTE: I'm not guaranteeing that this will help solve the issue. This is just how I would approach the debug process.)

I'm not going to claim that the information above will definitely fix your issue(s) with your code, but based on my past experience with using Win32::SerialPort to communicate with a device, that's where I would start with the debug process.