Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: how to seperate array after a certain number of elements?

by artist (Parson)
on Sep 19, 2007 at 15:51 UTC ( [id://639914]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use List::MoreUtils qw(natatime);
    
    ...
      print "@smallArray\n";
    }
    
  2. or download this
    use List::MoreUtils qw(part);
    @array = (1..100);
    $i = -0.1;
    @parts = part { $i += 0.2   }  @array;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-03-29 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found