in reply to Serial port - again
I think you just answered your own question :) , perhaps the read returns as soon as it gets the first character?
Try printing $rx in the loop and then you'll know for sure.
I've never used that module but from a quick scan of the pod it does have a lookfor method.
|
---|
In Section
Seekers of Perl Wisdom