use strict;
use warnings;
use List::MoreUtils qw/natatime/;
my @array = qw(a b c e 1 2 3 4 5 3 f);
my $it = natatime 3, @array;
while ( my @vals = $it->() ) {
print "@vals\n";
}
####
a b c
e 1 2
3 4 5
3 f
####
use strict;
use warnings;
use Text::Wrap;
$Text::Wrap::columns = 18;
my $text = <##
BTW - I use
this for
generating
multi-line output
- tables and
such.