I often find myself typing
Is there a shorter form to write that? (I mean apart from "&&" for "and").
Unfortunately,
does not work.
Thanks!
Markus
Stop thinking of Perl in a English sentence(y) way.
Even though the very "evil" word *unless* is available,
logic is Boolean! In more understandable terms its called
"Formal Symbolic Logic" and its offered as an elective at
every JC in the country (for 3 credits... whoop!).
Its a course without which, imo, you will run into problems
with the if/then/else construct. Btw, that course takes you
through the analysis of English sentences, then paragraphs,
then documents, where you have to write symbolic logic
expressions, turn English into logic, then for the grand
finally, you have to solve the logic equations just written
to give an overall TRUTH to the statement/paragraph/document.
Oh and there are the FORMAL ERRORS you have to deliniate.
20 or so. If you don't get an 'A' in this course there could
be trouble with programming.
"Shorter" is not better. Never was and never will be.
Shorthand notation you see on the usenet group are willfull
attempt to mislead. Deception is actually power here.
There is *NO* hidden logic, manifested by notation or keywords,
that make the code work faster or better beyond the fully
exposed if/then/else construct.
You actually have to "break the code down into simple logic"
before it can be optimized. If it can't be optimized when
expressed simply, then it *CANNOT* be optimized anyway else !!!
Hope you understand that?
robic0