in reply to "when" and replacements
a subroutine or method call
a regular expression match, i.e. /REGEX/ or $foo =~ /REGEX/ , or a negated regular expression match (!/REGEX/ or $foo !~ /REGEX/ ).
a comparison such as $_ < 10 or $x eq "abc" (or of course $_ ~~ $c )
defined(...), exists(...), or eof(...)
a negated expression !(...) or not (...) , or a logical exclusive-or (...) xor (...)
a filetest operator, with the exception of -s , -M , -A , and -C , that return numerical values, not boolean ones.
the .. and ... flip-flop operators.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "when" and replacements
by John M. Dlugosz (Monsignor) on May 07, 2011 at 07:08 UTC | |
by CountZero (Bishop) on May 07, 2011 at 07:21 UTC | |
by John M. Dlugosz (Monsignor) on May 07, 2011 at 08:53 UTC | |
by LanX (Saint) on May 07, 2011 at 09:01 UTC |