in reply to OO theory question

Is threading an option available to you? It would let your connection objects operate in a more natural way. If your Perl supports it (5.8 or later recommended), and if your familiarity with threading, or your tolerance for a bit of a learning curve is sufficient, then perhaps consider threads.

Replies are listed 'Best First'.
Re^2: OO theory question
by Forsaken (Friar) on Jun 09, 2004 at 15:19 UTC
    i'm running 5.8.3, Activeperl to be exact. I'm not scared of learning something new, but my knowledge of threading is, well, negligible :-) I've been doing a little searching on how I might go about this, but so far I haven't really been able to find a tutorial or explanation that offers me great enlightenment.

      Threading is a good thing to learn. It's becoming more prevalent, and as the implementations mature, and multiple CPU machines become more popular, it will become a more valuable skill. Or put another way, you'll need to be good at threads one day.

      Try perlthrtut, and of course, PerlMonks - there are many tutorials, helpful hints, and patient folks willing to help.

      Now the caveats - if this project has a challenging deadline, or if you anticipate difficulties, or if this is a high-profile app with low tolerance for bugs, you may want to back off threads.

        nah, just a little personal project. tx for the tips, will see if i can get it working without spawning loose threads all over the place ;-)