http://www.perlmonks.org?node_id=1019183


in reply to Re^3: getting rid of special features
in thread getting rid of costly special features

$ perl -wE 'say for "a".."e"' a b c d e

It had never occurred to me before seeing a range in the context of this thread to try

$ perl -wE 'say for q{x} .. q{ac};' x y z aa ab ac

Perl has me laughing out loud with amazement and delight sometimes :-)

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^5: getting rid of special features
by soonix (Canon) on Feb 17, 2013 at 21:40 UTC
    However, sort order is different from "range order"...
      > However, sort order is different from "range order"...

      So what?

      DB<125> sort 1..12 => (1, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9)

      Lexicographic sort is always different!

      Cheers Rolf

        Laxtiviographic sort is always different!

        There, I fixed it for you :D