in reply to sockets and such in Perl

Isn't it easier to use threads instead of processes for this purpose, cause you can access the same variables? I haven't used either of them but i mean that was one of the advantages about using threads?

Replies are listed 'Best First'.
Re^2: sockets and such in Perl
by halley (Prior) on Jul 03, 2005 at 15:56 UTC
    I am trying to code up a project for a class - the assignment is to create 3 separate processes,

    Sure, threads are easier. But it's harder to learn inter-process communication (and get a good grade) if you rely on the crutch of shared variables.

    --
    [ e d @ h a l l e y . c c ]