Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Printing the range

by viktor (Acolyte)
on Feb 19, 2013 at 10:27 UTC ( #1019512=perlquestion: print w/replies, xml ) Need Help??
viktor has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks I have a question that I have the digits like 1 2 3 4 8 9 10 21 22 23 and I want to print something like this (in range) 1-4 8-10 21-23. How i can do it? Regards

Replies are listed 'Best First'.
Re: Printing the range
by Anonymous Monk on Feb 19, 2013 at 10:36 UTC
      thanks :)
Re: Printing the range
by Cristoforo (Deacon) on Feb 19, 2013 at 15:52 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1019512]
Front-paged by Corion
help
Chatterbox?
[Discipulus]: the very same topic was discussed in CB yesterday at lunch time
[Discipulus]: or can I ask for a module to do the back conversion from flame to txt?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-06-23 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (538 votes). Check out past polls.