I recently started playing around with IO::Socket, and I wanted to write a small script to connect to a server, send a given piece of data, and do something when a reply is received.
My question, though, is how do I "wait" for that to happen? I suppose I could use a while loop or something, but isn't that a bit cheezy? How can I do some real event handling in a situation like this?
Thanks
In reply to Waiting for an event by Segfault
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |