Just another Perl shrine | |
PerlMonks |
Re: Can't use string as an ARRAY refby GotToBTru (Prior) |
on Aug 21, 2015 at 15:07 UTC ( [id://1139427]=note: print w/replies, xml ) | Need Help?? |
$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 Section
Seekers of Perl Wisdom
|
|