Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: List-to-Range generation

by ZZamboni (Curate)
on Jun 11, 2001 at 20:31 UTC ( #87572=note: print w/ replies, xml ) Need Help??


in reply to List-to-Range generation

I wish I could double-++ this. It is fantastic!

I needed exactly this a couple of days ago, and I ended up using Set::IntSpan. Oh well... :-)

/me bows reverently to master regexer japhy

--ZZamboni


Comment on Re: List-to-Range generation
Re: Re: List-to-Range generation
by japhy (Canon) on Jun 11, 2001 at 20:54 UTC
    Thanks muchly. I'm working on one to change (4,5,6,11,12,13,14,19,20,21) to "4-6,11-4,19-21"

    japhy -- Perl and Regex Hacker
      I assume you meant "4-6,11-14,19-21"? If so, that's what this one does, isn't it? What am I missing?

      --ZZamboni

        Your assumption is wrong. Have you never seen ranges like "read pages 121-3"?

        japhy -- Perl and Regex Hacker

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2015-07-05 04:35 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 (60 votes), past polls