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 reply to Re: Serial port - again
by RichardK
in thread Serial port - again
by rkrasowski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |