in reply to Can't use string as an ARRAY ref

I think 1..@{$data->[0]} in your add_more sub is what is giving you the error, it should be:
column_props => [ map { { justify => 'center' } } 1..@{$data} ],

Replies are listed 'Best First'.
Re^2: Can't use string as an ARRAY ref
by Anonymous Monk on Aug 21, 2015 at 18:19 UTC
    I guess I have to find a way to pass these:
    data => $main->[$i], and data => $type->[$i], and data => $princ->[$i] +,

    as a reference, right?