in reply to Threads question

So I decide to give up fork and choose threads in my next programme.

That sounds like you would never ever use fork again, which feels wrong.

Use the right tools for the job - it's almost always fork (on *nix), and somtimes threads, or almost always threads (on Windows) and rarely fork there .-)

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}