in reply to Re^4: Unusual error in Win32::SerialPort (Missing REQUIRED setting for BAUD) (guess)
in thread Unusual error in Win32::SerialPort (Missing REQUIRED setting for BAUD)

It was my fault. The code was in a subroutine where $baud_rate was passed by reference and used as if it were passed by value. After correcting the mistake the following construct worked perfectly:
$Serial->{"_L_BAUD"}{$baud_rate} = $baud_rate; $Serial->baudrate($baud_rate);
  • Comment on Re^5: Unusual error in Win32::SerialPort (Missing REQUIRED setting for BAUD) (guess)
  • Download Code