$princ is an AoA, an array whose elements are array refs. You are passing one of those array refs to add_more, which you store as $data. However, $data->[0] is a scalar, not an array ref, hence the error message.
In reply to Re: Can't use string as an ARRAY ref
by GotToBTru
in thread Can't use string as an ARRAY ref
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |