in reply to Two Range Operator Anomalies

For the first question, perlop goes on to say:

If the final value specified is not in the sequence that the magical increment would produce, the sequence goes until the next value would be longer than the final value specified.

I read that to mean, 'e' .. 'd' runs through 'z' and stops at 'za' 'aa' (thanks ikegami).

Update: Correction!

Replies are listed 'Best First'.
Re^2: Two Range Operator Anomalies
by ikegami (Patriarch) on Mar 11, 2009 at 16:19 UTC

    and stops at 'za'

    Stops at 'aa', actually

    $ perl -le'print ++($_="z")' aa $ perl -le'$,=" "; print "e".."d"' e f g h i j k l m n o p q r s t u v w x y z $ perl -le'$,=" "; print "e".."za"' e f g h i j k l m n o p q r s t u v w x y z aa ab ...[647]... yz za

    perlop goes on to say:

    But doesn't that feel like it's documenting a bug?