Don't ask to ask, just ask | |
PerlMonks |
Re: Non-linear sub-routine launchingby tachyon (Chancellor) |
on Apr 04, 2002 at 02:14 UTC ( [id://156541]=note: print w/replies, xml ) | Need Help?? |
You need fork or perhaps Parallel::ForkManager. If you go to Super Search and do a search for "fork" in the text you should find a few good examples. Here are some that I answered (I posted the code you want in one so it look at it as a treasure hunt!) One word of warning - spawning too many children too fast can saturate your network so don't write a Denial of Service hack on your own servers! A brief sleep before forking off each child is sound if you need to check a large network. Time::HiRes lets you sleep for a few tens of miliseconds: my children are driving me crazy
cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In Section
Seekers of Perl Wisdom
|
|