Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: getting rid of special features

by johngg (Abbot)
on Feb 17, 2013 at 18:26 UTC ( #1019183=note: print w/ replies, xml ) Need Help??


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


Comment on Re^4: getting rid of special features
Select or Download Code
Re^5: getting rid of special features
by soonix (Priest) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019183]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2015-07-02 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls