You have neglected to show us sample data tho. scalar(@$data) also would fail if $data was an EMPTY array.
(ref($data) eq 'ARRAY') per http://perldoc.perl.org/functions/ref.html would fail if $data is a blessed object. If the referenced object has been blessed into a package, then that package name is returned instead.
In reply to Re: PDF::Table last page
by huck
in thread PDF::Table last page
by PierreForget
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |