I want an idea on how to make online chatting network in perl, just like a messenger where if there's an online people you can chat him/her. I know how to create a chat network in perl but everyone can chat in an single network like a public chat room, But what i was trying to say is you can only chat people who are online and only both of you can see your messages. I have a limited idea on how to make this things work do i need to create a server for each client entered my program? modules i use is Gtk2 IO::Socket::INET threads Thanks in advance.

Most of the work has been done for you already, thanks to the Jabber effort. Once you work your way through that, if you really want a Perl client, start off with Net::Jabber.