P is for Practical | |
PerlMonks |
Re^2: Multi-stage flip-flop?by RonW (Parson) |
on Dec 11, 2014 at 17:12 UTC ( [id://1110070]=note: 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 Section
Meditations
|
|