Please explain "strict" to me. Perl seems anything but strict. Except when it comes to if statements, which MUST involve curly braces:
if(<cond>){%eval_true%}else{%eval_false%}
unlike shell script or other, looser constructs that know the next line off an if is %eval_true%.
I must believe there is a good reason for this that eludes me, as I must believe that Perl is about simplicity and elegance. Yet removing curly braces and getting away with it seems like a good, intuitive thing to do to a compiler/interpreter.
Pontificate?
p.s. I would like to propose a new tag for posts and cb ... 'pseudocode' - for formatting code that is really shorthand and differentiating it from stuff between legitimate 'code' tags, which should execute in a Perl environment without errors, or with only errors specifically described in the post. What I wrote above was 'pseudocode. |