Syntactic Confectionery Delight | |
PerlMonks |
Re: How can I run a portion of code (like fork() does) w/o creating its own process?by nerdie (Initiate) |
on Jun 14, 2002 at 04:30 UTC ( [id://174404]=note: print w/replies, xml ) | Need Help?? |
You might want to try redesigning your code to use POE (Perl Object Environment). This lets you write multitasking programs often without fork() overhead.
You can design your 'child' subroutines as new Sessions, which is synonymous to a process, but without using the underlying fork() system call.
In Section
Seekers of Perl Wisdom
|
|