Looking in my Camel book (1st edition), I see the '..' range operator. The fact that it's really two distinct operators depending on context is mentioned. The wording (regarding context) isn't too different from what's in the current documentation: "perlop: Range Operators". I see no reference to the '...' range (flip-flop) operator in that book.

In perlhist, I see:

"Perl 4 introduced the first Camel book. Really. We mostly just switched version numbers so the book could refer to 4.000."

So, that puts the list context '..' at least at Perl3. AM's response indicates (from O_FLIP) that the scalar flip-flop version was around at Perl1.

Looking in my Camel book (2nd edition), I see the '...' range (flip-flop) operator is now mentioned. So, it looks like that didn't appear until Perl5.

— Ken


In reply to Re: Perl history: when did Perl get a range operator? by kcott
in thread Perl history: when did Perl get a range operator? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.