in reply to Re: Why doesn't this for loop work like I expect?
in thread Why doesn't this for loop work like I expect?

Bah. btrott beat me to the splice. Here's a silly way to do it: @data = map [splice @files, 0, $num_cols], 0..@files/$num_cols;