Brian wrote:
Mr. Shawn H. Corey wrote:
This code is written this way because the coder has been playing too
much Perl Golf ;) The objective of Perl Golf is to write a program to
do a simple task in the least number of characters possible. This, of
course, makes it harder to read.
I must admit here that I am guilty of working this way too, why write 50
lines when 3 will do.
Why indeed?
Laughing at myself, because my very first attempt at writing a program
contained dozens of lines and the real programmer at work crossed them
out 1 at a time saying "not needed".
She reduced the calculation section to literally 2 lines of code.
The fewer lines of code to read and/or write, the easier it is to spot
mistakes, the less chance for "action at a distance."
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/