|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Multithreaded Socket Listenerby Anonymous Monk |
| on Nov 14, 2012 at 22:13 UTC ( #1003895=note: print w/ replies, xml ) | Need Help?? |
|
I know it's a big piece of code and looks ugly here. Sorry for this. If somebody has a hint for me - I would be very thankful :O) It looks ugly anywhere :) seriously, subroutines should (for the most part) take arguments, not operate on global variables You need more subroutines, there is way too much code outside of subroutines. Instead of # build a list of files to check you need my @resultfiles = files_to_check( $properties ); Your code contains exit 18 times -- way too many, Your loop should be short, like
This might interest you A suicidal parent OR death of a forking server That's about all I got, except, you say you're using a browser -- then you might as well use write a plain Also, see Proc::Background :)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||