Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Is too little too much? Coding under the microscope...by chromatic (Archbishop) |
on Jun 28, 2001 at 09:35 UTC ( [id://92187]=note: print w/replies, xml ) | Need Help?? |
Can you understand it when it's shortened? If you add a comment, can the other people who'll work on the program understand it?
In theory, the fewer lines of code you have, the less bugs. You might want to move sort to the right side of the assignment in the short version, though. :) I'd probably throw a \z anchor at the end of the grep regex, too.
In Section
Seekers of Perl Wisdom
|
|