in reply to style quest
Cuddled elses are elses/elsifs on the same line as the closing "}" from the preceeding "if" statement:simple: print $day_of_week[$wday]; complex: print $day_of_week[ ((localtime($^T))[6] + 4) % 7 ];
The style guide actually recommends uncuddled elses where the else is on a separate line from the preceeding "}":if ($foo) { bar; } else { baz; }
if ($foo) { bar; } else { baz; }
|
|---|