Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    $ cat 892828_a.pl
    #!/usr/bin/perl
    ...
    
    $ perl 892828_a.pl
    (0-3333332), (3333332-6666664), (6666664-9999997)
    
  2. or download this
    $ cat 892828_b.pl
    #!/usr/bin/perl
    ...
    
    $ perl 892828_b.pl
    (0-3333331), (3333332-6666663), (6666664-9999997)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-26 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found