Monday, September 7, 2009

What to call the ... operator?

What should we call Perl 5's ... operator? In list context it is identical to the range operator (..) and in scalar context it is almost identical to the flip-flop operator (also ..). The Camel and perlop are strangely silent on this. I am currently calling it the alternate range/flip-flop operator for lack of a better term. What do you call it?

No, the yadda yadda yadda operator is in Perl 6 and is very different. I am talking about the ... operator in Perl 5. It is a variant of the range and flip-flop operators. In Perl 6 it has been replaced by .. and fff.