Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 (Curate) 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 surveying the Monastery: (5)
As of 2014-12-22 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls