> Hi at all,

Opps, I assume you meant "Hi et all", but that is latin for "Hi and all"... implying a 
name/group
between "Hi" and "et"... such as:

Hi humamiod lifeforms et all,

Anyway, that's a little OT.

> What is the best method for make a long time
> function not blocking?

Under Unix, you want to fork.  But if you have
the guts, then have a look at Perl's threading
model - experimental since version 5 was
born.

perldoc -f fork
perldoc perlthrtut

> At this moment I solved the problem making
> the function a single executable perl file
> so I execute (in the main perl file)
> system(file-perl-for-function &);

Forking does a similar thing, it splits your
process into two identical halves.  You can
then do two things at a time, but communicating
back is a little more tricky.

For a beginner, the solution you have is
probably suitable for the moment, although
definately not perfect.

Forking isn't portable.

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to