|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re^3: how to write thread which was multithreaded port scan scripts for nmapby vinoth.ree (Priest) |
| on Jan 24, 2013 at 12:58 UTC ( #1015165=note: print w/ replies, xml ) | Need Help?? |
|
Ok,fine. Then include the threads module into your code as use threads;within the while loop,create new thread for each domain name.
Even you can return the $myport from the subroutine and update the table outside the subroutine or even you can have that table updating script inside the subroutine, its your wish. If you want these threads to run as daemon process do not return from the subroutine use infinite loop to process in a frequent time. Update:Included threads cpan link
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||