in reply to Sockets / IRC

You could use a select loop, which is how POE work under the covers (also, see POE::Component::IRC and POE::Component::Client::UserAgent).

Replies are listed 'Best First'.
Re^2: Sockets / IRC
by mindsport (Initiate) on Sep 22, 2010 at 22:54 UTC
    could you help me with an example of the select one? I wanted to not use the whole POE package with this small project

      If you really want to do it yourself, I'd recommend using IO::Select, which even has a example in the documentation. Keep in mind that you'll need to implement the relevant RFCS.

      The easy way out is to use POE or AnyEvent::IRC::Client.