in reply to Re: A C-like brain in a Perl-like world
in thread A C-like brain in a Perl-like world
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: A C-like brain in a Perl-like world
by blakem (Monsignor) on Sep 28, 2001 at 11:49 UTC | |
|
Re^3: A C-like brain in a Perl-like world
by Aristotle (Chancellor) on Sep 28, 2001 at 14:05 UTC |