Why don't you just check whether data() returned something?
Alternatively, have data() return an empty arrayref when there is nothing to return.
In reply to Re: Count elements in array ref
by Corion
in thread Count elements in array ref
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |