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 | |
by viktor (Acolyte) on Feb 19, 2013 at 10:46 UTC | |
|
Re: Printing the range
by Cristoforo (Curate) on Feb 19, 2013 at 15:52 UTC |