Take a look at IO::Select, a wrapper for four arg select. That will let you read whichever source has data ready.
After Compline,
Zaxo
In reply to Re: multiple socket streams
by Zaxo
in thread multiple socket streams
by Forsaken
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |