in reply to Re: Global objects?
in thread Global objects?

Well, to be honest; The reading of the sensors happens in an uncached way. The reading takes about 1-2 seconds to complete, therefore i thoughd i'd fire a thread for each sensor. This way even though i have multiple sensors; it won't delay the script noticably.

I've read your article today (briefly) i'll look into it more in depth right away! Thanx!

p.s. i am using 5.8.8

Replies are listed 'Best First'.
Re^3: Global objects?
by TGI (Parson) on May 07, 2008 at 18:22 UTC

    You might want to check out POE. This is the sort of task it is really great at.

    Of course POE isn't usually the first thing one throws at a Perl newbie. But you seem to be handling threads OK...


    TGI says moo