perleager has asked for the wisdom of the Perl Monks concerning the following question:

Right now I only know Perl good enough to program web software such as gallery, guestbook, shopping cart, but I was asked to program a client that connects two users to a server, allowing chat and visual features.

I get a big reward If I can pull this off and I have around 3 weeks to do it. Can anyone give me websites that can help me get started. I'm clueless on this type of programming and on networking.

Thanks
  • Comment on Help using perl for network programming

Replies are listed 'Best First'.
Re: Network Programming with Perl
by runrig (Abbot) on Jan 03, 2002 at 07:00 UTC
    Well, the title of your post is the title of an excellent book by Lincoln Stein, and The Perl Cookbook also has some excellent snippets in that area (a good quickie reference for some of that sort of thing and other things).
Re: Network Programming with Perl
by dws (Chancellor) on Jan 03, 2002 at 07:05 UTC
    I get a big reward If I can pull this off and I have around 3 weeks to do it.

    Depending on what they mean by "visual features", this could be a real stretch. You might give serious thought to this offer having a low probability of payoff for 3 weeks of work, and consider whether you want to risk that amount of time. The systems I know that let people chat (via web pages) all required several person months to get to a stable state.

    If you decide to go for it, merlyn has aWebTechniques article that describes a simple web-based chat system.

Re: Network Programming with Perl - use Jabber
by cLive ;-) (Prior) on Jan 03, 2002 at 14:35 UTC
    I know it's not Perl, but have you looked at Jabber?

    And this looks very useful if you want examples of Net::Jabber usage.

    cLive ;-)

Re: Network Programming with Perl
by Beatnik (Parson) on Jan 03, 2002 at 13:58 UTC
    I agree with dws, working on this for 3 weeks might learn you a thing or two but will you be able to learn enough to deliver a good product?

    Network programming starts and ends with Sockets (well, there's some stuff in the middle too). I recommend starting with IO::Socket. Do you have basic knowledge on Networks? Do you know what a socket is, etc?

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.
Re: Network Programming with Perl
by mce (Curate) on Jan 03, 2002 at 14:17 UTC
    Hi
    What do you understand by visual features? Do you want to write a Tk interface, or a Win32::GUI? Or is a web browser sufficient? (which is in most cases, certainly in a quick win situation)
    In case of just a web interface, I suggest looking at the code of the perlmonks site itself? It has a chatbox and as far as I can see, it's code is freely available.
    I hope this helps
    ---------------------------
    Dr. Mark Ceulemans
    Senior Consultant
    IT Masters, Belgium