Now back to verbs, using
$2 - $1 <= $c ? '(*FAIL)' : '(*ACCEPT)'
makes it fail in the exact same way ...
WRT Special Backtracking Control Verbs (in Perl version 5.10+): Rather than using (??{ ... }) to dynamically compile a '(*FAIL)' or '(*ACCEPT)' string into the regex, it may be advantageous to use the
"(?(condition)yes-pattern|no-pattern)"
or
"(?(condition)yes-pattern)"
conditional expression constructs; they're generally a bit faster and IMHO much more clear.
Give a man a fish: <%-{-{-{-<
In reply to Re^4: Can't coerce UNKNOWN to string in substitution iterator (splain, (??{}))
by AnomalousMonk
in thread Can't coerce UNKNOWN to string in substitution iterator
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |