http://qs1969.pair.com?node_id=834260

theantler has asked for the wisdom of the Perl Monks concerning the following question:

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?