http://www.perlmonks.org?node_id=1007504


in reply to Re^3: Trying to read from serial port - not getting a response
in thread Trying to read from serial port - not getting a response

I just tried the code you posted. But I'm getting the same result like with my code. The loop is somehow not entered as well:
c:\Dropbox\Scripts>perl PortTest2.pl Enter AT command:ATI Sending: 'ATI' reading...
From my understanding it should at least print the buffer size one time if there is 1 byte of data. The AT-command (ATI) I'm trying should give me something like this:
ATI Manufacturer: Company Name Model: 1234 Revision: AABBCCDDEE-123456 1 [Dec 01 2012 14:00:00] IMEI: 123456789012345 +GCAP: +CGSM,+DS,+ES OK