Help for this page

Select Code to Download


  1. or download this
    my @slurp = <IN>;
    while (my @chunk = splice(@slurp, 0, 10)) {
      # do stuff
    }
    
  2. or download this
    while (my @chunk = map{scalar<IN>||()} 1..10) {
      # do stuff
    }