![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Re: Re: Re: Re: network socket send loop is very cpu intensiveby l2kashe (Deacon) |
on Nov 18, 2003 at 21:49 UTC ( #308145=note: print w/replies, xml ) | Need Help?? |
Best bet would be to stick with the same conventions Perl uses, this way you can maintain a perlish feel to your code making use of 'and' and 'or' so on and so forth. So returning 0, an empty string, or undef are all valid canidates. Just a comment on style, try to segregate lines which do functionally different things. This way it is clear when reading the code that lines grouped together are doing something similar. I have included your code below and spaced it out along what I mean. Also try to not "hardcode" values in your scripts, as this can lead to numerous possibilities for typos. This is just my personal opinion and YMMV, and offered as constructive criticism.
use perl;
In Section
Seekers of Perl Wisdom
|
|