The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#!/usr/bin/env perl
use lib dirname(__FILE__);
my @array = (1..10);
my $tabulator = Data::Tabulate->new();
my $dump = $tabulator->render('Test',{data => [@array]});
my $check = q~$VAR1 = [
[
1,
2,
3
],
[
4,
5,
6
],
[
7,
8,
9
],
[
10,
undef,
undef
]
];
~;
is($dump,$check);
done_testing();