Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Split range 0 to M into N non-overlapping (roughly equal) ranges.

by roboticus (Chancellor)
on Mar 12, 2011 at 18:02 UTC ( [id://892844]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    $ perl 892828_c.pl
    (0-1999999), (1999999-3999998), (3999998-5999997), (5999997-7999996), 
    +(7999996-9999995)
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    $ perl 892828_d.pl
    Name "main::b" used only once: possible typo at 892828_d.pl line 10.
    (0-1), (1-0), (0-1999999), (1999999-3999998), (3999998-5999997), (5999
    +997-7999996), (7999996-9999995)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found