Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Perl flip-flop seems to be a generalization of range matching like in awk, sed, SNOBOL and others.* (Generally "rule-action" languages.) I can see where the generalization may have gone too far, but in the context of regular expressions, syntax like: /match0/ .. /match1/seems clear to me. Or perhaps the awk/sed syntax: /match0/, /match1/might be clearer - except that it would be inconsistent with other uses of , in Perl. --- * I learned about SNOBOL long ago when I took a "300 level" CS class called "Language Stuctures". It was a very interesting class. Learned about several weird languages, including ProLog, LISP and APL. In reply to Re^2: Multi-stage flip-flop?
by RonW
|
|