Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: breaking an array into nearly equal parts

by Roy Johnson (Monsignor)
on Dec 14, 2005 at 18:32 UTC ( [id://516723]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub apportion {
      my ($elements, $pieces) = @_;
    ...
      print "Sizes: ", join(', ', apportion(@$try)), "\n";
      print "@$_\n" for multi_slice([1..$try->[0]], apportion(@$try));
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found