Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Converting a list of numbers to use a range operator

by arnaud99 (Beadle)
on Mar 23, 2013 at 21:19 UTC ( #1025080=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    use Data::Dumper;
    ...
        say "range: ", $a_range->[0], '..', $a_range->[-1];
    }
    
  2. or download this
    $VAR1 = [
              [
    ...
    range: 10..13
    range: 20..22
    range: 34..38
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025080]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2016-12-03 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.