Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
What constitutes nice looking code, and why is important?
Here is my musing on this .. Nice looking should be a) minimal and compact but 2) should not sell-out on readibility. A very simple example:
print if -d; I would "correct" this (and maybe I am the only one?) to: if (-d) { print $_ } Maybe we should skip the $_ .. ? Folks, what do you think, what is the most correct style of perl code? In reply to Writing code that looks nice by theantler
|
|